X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fefs%2Fsuper.c;h=c79bc627f1079adf72ac3779befdda1540272dec;hb=a628a8bcd8a6daea6096fe781fc36cae4ac1ed48;hp=d360c81f3a729b7a282ef5da9a99fe65ffb43335;hpb=5ca29607331fe37980dc3b488793ef8b1409b722;p=linux-2.6 diff --git a/fs/efs/super.c b/fs/efs/super.c index d360c81f3a..c79bc627f1 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c @@ -69,19 +69,19 @@ static void efs_destroy_inode(struct inode *inode) kmem_cache_free(efs_inode_cachep, INODE_INFO(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 efs_inode_info *ei = (struct efs_inode_info *) foo; inode_init_once(&ei->vfs_inode); } - + static int init_inodecache(void) { efs_inode_cachep = kmem_cache_create("efs_inode_cache", sizeof(struct efs_inode_info), 0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, - init_once, NULL); + init_once); if (efs_inode_cachep == NULL) return -ENOMEM; return 0; @@ -113,8 +113,9 @@ static const struct super_operations efs_superblock_operations = { .remount_fs = efs_remount, }; -static struct export_operations efs_export_ops = { - .get_dentry = efs_get_dentry, +static const struct export_operations efs_export_ops = { + .fh_to_dentry = efs_fh_to_dentry, + .fh_to_parent = efs_fh_to_parent, .get_parent = efs_get_parent, };