]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ncpfs/inode.c
[PATCH] VFS: Permit filesystem to override root dentry on mount
[net-next-2.6.git] / fs / ncpfs / inode.c
index 0b521d3d97ce6ec0c24bcafae03592e5dd44cf59..8db033fab3fdda6e28a8374bbd8df185a96f42af 100644 (file)
@@ -72,7 +72,8 @@ static int init_inodecache(void)
 {
        ncp_inode_cachep = kmem_cache_create("ncp_inode_cache",
                                             sizeof(struct ncp_inode_info),
-                                            0, SLAB_RECLAIM_ACCOUNT,
+                                            0, (SLAB_RECLAIM_ACCOUNT|
+                                               SLAB_MEM_SPREAD),
                                             init_once, NULL);
        if (ncp_inode_cachep == NULL)
                return -ENOMEM;
@@ -956,10 +957,10 @@ out:
        return result;
 }
 
-static struct super_block *ncp_get_sb(struct file_system_type *fs_type,
-       int flags, const char *dev_name, void *data)
+static int ncp_get_sb(struct file_system_type *fs_type,
+       int flags, const char *dev_name, void *data, struct vfsmount *mnt)
 {
-       return get_sb_nodev(fs_type, flags, data, ncp_fill_super);
+       return get_sb_nodev(fs_type, flags, data, ncp_fill_super, mnt);
 }
 
 static struct file_system_type ncp_fs_type = {