aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_fs.c')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_fs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c
index e274120567e1..63de3046aff3 100644
--- a/drivers/infiniband/hw/ipath/ipath_fs.c
+++ b/drivers/infiniband/hw/ipath/ipath_fs.c
@@ -542,13 +542,14 @@ bail:
542 return ret; 542 return ret;
543} 543}
544 544
545static struct super_block *ipathfs_get_sb(struct file_system_type *fs_type, 545static int ipathfs_get_sb(struct file_system_type *fs_type, int flags,
546 int flags, const char *dev_name, 546 const char *dev_name, void *data, struct vfsmount *mnt)
547 void *data)
548{ 547{
549 ipath_super = get_sb_single(fs_type, flags, data, 548 int ret = get_sb_single(fs_type, flags, data,
550 ipathfs_fill_super); 549 ipathfs_fill_super, mnt);
551 return ipath_super; 550 if (ret >= 0)
551 ipath_super = mnt->mnt_sb;
552 return ret;
552} 553}
553 554
554static void ipathfs_kill_super(struct super_block *s) 555static void ipathfs_kill_super(struct super_block *s)