[PATCH] VFS: Permit filesystem to override root dentry on mount
[linux-2.6-block.git] / drivers / infiniband / hw / ipath / ipath_fs.c
index e274120567e1d5068996efe74a0a4a41d3619321..63de3046aff30079415914aa4b55eb2d35e9b073 100644 (file)
@@ -542,13 +542,14 @@ bail:
        return ret;
 }
 
-static struct super_block *ipathfs_get_sb(struct file_system_type *fs_type,
-                                       int flags, const char *dev_name,
-                                       void *data)
+static int ipathfs_get_sb(struct file_system_type *fs_type, int flags,
+                       const char *dev_name, void *data, struct vfsmount *mnt)
 {
-       ipath_super = get_sb_single(fs_type, flags, data,
-                                   ipathfs_fill_super);
-       return ipath_super;
+       int ret = get_sb_single(fs_type, flags, data,
+                                   ipathfs_fill_super, mnt);
+       if (ret >= 0)
+               ipath_super = mnt->mnt_sb;
+       return ret;
 }
 
 static void ipathfs_kill_super(struct super_block *s)