Commit d0356a4d authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds

[PATCH] Add missing DQUOT_OFF

Attached patch adds missing DQUOT_OFF to the umount path of the root
filesystem (it is only remounted read-only and so the usual path with
DQUOT_OFF is not taken).
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent aa50080e
......@@ -423,6 +423,7 @@ static int do_umount(struct vfsmount *mnt, int flags)
down_write(&sb->s_umount);
if (!(sb->s_flags & MS_RDONLY)) {
lock_kernel();
DQUOT_OFF(sb);
retval = do_remount_sb(sb, MS_RDONLY, NULL, 0);
unlock_kernel();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment