]> git.baikalelectronics.ru Git - kernel.git/commit
quota: turn quotas off when remounting read-only
authorJan Kara <jack@suse.cz>
Fri, 8 Feb 2008 12:22:13 +0000 (04:22 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:44 +0000 (09:22 -0800)
commit9e12493fc75b7a4875ee75cc67185ad5cc375f3f
tree6bd6c7402d5f71f43c161e694d04c535ffc98b57
parent915021ba1bb28ac60fb064d43b94fd1a96a98dd9
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 <jack@suse.cz>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/super.c