[PATCH] Add missing DQUOT_OFF
From: Jan Kara
Date: Thu Nov 18 2004 - 06:38:42 EST
Hello!
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). Please apply.
Honza
--
Jan Kara <jack@xxxxxxx>
SuSE CR Labs
Add quotaoff when unmounting root (actually remounting RO).
Signed-off-by: Jan Kara <jack@xxxxxxx>
diff -rupNX /home/jack/.kerndiffexclude linux-2.6.10-rc2-mm1-1-eqfix/fs/namespace.c linux-2.6.10-rc2-mm1-2-offadd/fs/namespace.c
--- linux-2.6.10-rc2-mm1-1-eqfix/fs/namespace.c 2004-11-16 16:39:08.000000000 +0100
+++ linux-2.6.10-rc2-mm1-2-offadd/fs/namespace.c 2004-11-16 16:49:35.000000000 +0100
@@ -423,6 +423,7 @@ static int do_umount(struct vfsmount *mn
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();
}