X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fbefs%2Flinuxvfs.c;h=b28a20e61b8061f294ea24d0037f183550fa1e7d;hb=c99da91e7a12724127475a85cc7a38214b3504e2;hp=fe96108a788d6d9b84fb56114cfde3e4ab42db50;hpb=ef93127e4c7b4b8d46421045641048397eaac43d;p=linux-2.6-omap-h63xx.git diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index fe96108a788..b28a20e61b8 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -289,13 +289,11 @@ befs_destroy_inode(struct inode *inode) kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); } -static void init_once(void * foo, struct kmem_cache * cachep, unsigned long flags) +static void init_once(struct kmem_cache *cachep, void *foo) { struct befs_inode_info *bi = (struct befs_inode_info *) foo; - - if (flags & SLAB_CTOR_CONSTRUCTOR) { - inode_init_once(&bi->vfs_inode); - } + + inode_init_once(&bi->vfs_inode); } static void @@ -416,7 +414,7 @@ befs_read_inode(struct inode *inode) } /* Initialize the inode cache. Called at fs setup. - * + * * Taken from NFS implementation by Al Viro. */ static int @@ -426,7 +424,7 @@ befs_init_inodecache(void) sizeof (struct befs_inode_info), 0, (SLAB_RECLAIM_ACCOUNT| SLAB_MEM_SPREAD), - init_once, NULL); + init_once); if (befs_inode_cachep == NULL) { printk(KERN_ERR "befs_init_inodecache: " "Couldn't initalize inode slabcache\n");