lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Add missing DQUOT_OFF
  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@suse.cz>
SuSE CR Labs
Add quotaoff when unmounting root (actually remounting RO).

Signed-off-by: Jan Kara <jack@suse.cz>

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();
}
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.046 / U:2.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site