From: Jan Kara Date: Fri, 8 Feb 2008 12:22:13 +0000 (-0800) Subject: quota: turn quotas off when remounting read-only X-Git-Tag: v2.6.25-rc1~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=66191dc622f5ff0a541524c4e96fdacfacfda206;p=linux-2.6-omap-h63xx.git 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 Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/super.c b/fs/super.c index 65f6849847f..88811f60c8d 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) {