patch-2.4.0-test5 linux/fs/dquot.c
Next file: linux/fs/ext2/file.c
Previous file: linux/fs/devices.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Thu Jul 27 16:47:16 2000
- Orig file:
v2.4.0-test4/linux/fs/dquot.c
- Orig date:
Mon Jul 10 16:47:25 2000
diff -u --recursive --new-file v2.4.0-test4/linux/fs/dquot.c linux/fs/dquot.c
@@ -64,8 +64,6 @@
static char quotamessage[MAX_QUOTA_MESSAGE];
static char *quotatypes[] = INITQFNAMES;
-static kmem_cache_t *dquot_cachep;
-
static inline struct quota_mount_options *sb_dqopt(struct super_block *sb)
{
return &sb->s_dquot;
@@ -732,7 +730,7 @@
/* Free list of dquots - called from inode.c */
void put_dquot_list(struct list_head *tofree_head)
{
- struct list_head *act_head = tofree_head;
+ struct list_head *act_head = tofree_head->next;
struct dquot *dquot;
/* So now we have dquots on the list... Just free them */
@@ -1344,13 +1342,6 @@
void __init dquot_init_hash(void)
{
printk(KERN_NOTICE "VFS: Diskquotas version %s initialized\n", __DQUOT_VERSION__);
-
- dquot_cachep = kmem_cache_create("dquot", sizeof(struct dquot),
- sizeof(unsigned long) * 4,
- SLAB_HWCACHE_ALIGN, NULL, NULL);
-
- if (!dquot_cachep)
- panic("Cannot create dquot SLAB cache\n");
memset(dquot_hash, 0, sizeof(dquot_hash));
memset((caddr_t)&dqstats, 0, sizeof(dqstats));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)