Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=66191dc622f5ff0a541524c4e96fdacfacfda206
Commit:     66191dc622f5ff0a541524c4e96fdacfacfda206
Parent:     28ae094c625a9b719c01cf5ec45b8640e6911f53
Author:     Jan Kara <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 8 04:22:13 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 09:22:44 2008 -0800

    quota: turn quotas off when remounting read-only
    
    Turn off quotas before filesystem is remounted read only.  Otherwise quota
    will try to write to read-only filesystem which does no good...  We could
    also just refuse to remount ro when quota is enabled but turning quota off
    is consistent with what we do on umount.
    
    Signed-off-by: Jan Kara <[EMAIL PROTECTED]>
    Cc: <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 fs/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/super.c b/fs/super.c
index 65f6849..88811f6 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -604,6 +604,7 @@ int do_remount_sb(struct super_block *sb, int flags, void 
*data, int force)
                        mark_files_ro(sb);
                else if (!fs_may_remount_ro(sb))
                        return -EBUSY;
+               DQUOT_OFF(sb);
        }
 
        if (sb->s_op->remount_fs) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to