lkml.org 
[lkml]   [2001]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: quotaoff OOPS (2.4.5-ac22)
  Hello,

> After issuing quotaoff -a the kernel oopses. All filesystems which have quotas are ext2 and are using the new quota system.
>
Seems like missing part of patch from Al Viro.. Attached patch should fix
it.

Honza

--
Jan Kara <jack@suse.cz>
SuSE Labs
--- linux/fs/dquot.c Mon Jul 2 19:29:31 2001
+++ linux/fs/dquot.c Mon Jul 2 19:30:37 2001
@@ -1889,7 +1889,7 @@
}

/* Function in inode.c - remove pointers to dquots in icache */
-extern void remove_dquot_ref(kdev_t, short);
+extern void remove_dquot_ref(struct super_block *, short);

/*
* Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
@@ -1913,7 +1913,7 @@
reset_enable_flags(dqopt, cnt);

/* Note: these are blocking operations */
- remove_dquot_ref(sb->s_dev, cnt);
+ remove_dquot_ref(sb, cnt);
invalidate_dquots(sb->s_dev, cnt);
/* When invalidate is finished there are no users of any dquot of our interest... */
if (quotafile_info_dirty(sb_dqopt(sb)->info+cnt))
\
 
 \ /
  Last update: 2005-03-22 12:55    [W:1.341 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site