diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 7 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 13 |
2 files changed, 11 insertions, 9 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index 5ec2d49e9bb6..e57d3c50f75f 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c | |||
@@ -821,11 +821,12 @@ static void ib_uverbs_remove_one(struct ib_device *device) | |||
821 | kref_put(&uverbs_dev->ref, ib_uverbs_release_dev); | 821 | kref_put(&uverbs_dev->ref, ib_uverbs_release_dev); |
822 | } | 822 | } |
823 | 823 | ||
824 | static struct super_block *uverbs_event_get_sb(struct file_system_type *fs_type, int flags, | 824 | static int uverbs_event_get_sb(struct file_system_type *fs_type, int flags, |
825 | const char *dev_name, void *data) | 825 | const char *dev_name, void *data, |
826 | struct vfsmount *mnt) | ||
826 | { | 827 | { |
827 | return get_sb_pseudo(fs_type, "infinibandevent:", NULL, | 828 | return get_sb_pseudo(fs_type, "infinibandevent:", NULL, |
828 | INFINIBANDEVENTFS_MAGIC); | 829 | INFINIBANDEVENTFS_MAGIC, mnt); |
829 | } | 830 | } |
830 | 831 | ||
831 | static struct file_system_type uverbs_event_fs = { | 832 | static struct file_system_type uverbs_event_fs = { |
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 | ||
545 | static struct super_block *ipathfs_get_sb(struct file_system_type *fs_type, | 545 | static 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 | ||
554 | static void ipathfs_kill_super(struct super_block *s) | 555 | static void ipathfs_kill_super(struct super_block *s) |