diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-24 17:48:30 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-29 04:16:28 -0400 |
commit | fc14f2fef682df677d64a145256dbd263df2aa7b (patch) | |
tree | 74f6b939fbad959a43c04ec646cd0adc8af5f53a /drivers/infiniband/hw | |
parent | 848b83a59b772b8f102bc5e3f1187c2fa5676959 (diff) |
convert get_sb_single() users
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 14 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_fs.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 12d5bf76302c..8c8afc716b98 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -362,13 +362,13 @@ bail: | |||
362 | return ret; | 362 | return ret; |
363 | } | 363 | } |
364 | 364 | ||
365 | static int ipathfs_get_sb(struct file_system_type *fs_type, int flags, | 365 | static struct dentry *ipathfs_mount(struct file_system_type *fs_type, |
366 | const char *dev_name, void *data, struct vfsmount *mnt) | 366 | int flags, const char *dev_name, void *data) |
367 | { | 367 | { |
368 | int ret = get_sb_single(fs_type, flags, data, | 368 | struct dentry *ret; |
369 | ipathfs_fill_super, mnt); | 369 | ret = mount_single(fs_type, flags, data, ipathfs_fill_super); |
370 | if (ret >= 0) | 370 | if (!IS_ERR(ret)) |
371 | ipath_super = mnt->mnt_sb; | 371 | ipath_super = ret->d_sb; |
372 | return ret; | 372 | return ret; |
373 | } | 373 | } |
374 | 374 | ||
@@ -411,7 +411,7 @@ bail: | |||
411 | static struct file_system_type ipathfs_fs_type = { | 411 | static struct file_system_type ipathfs_fs_type = { |
412 | .owner = THIS_MODULE, | 412 | .owner = THIS_MODULE, |
413 | .name = "ipathfs", | 413 | .name = "ipathfs", |
414 | .get_sb = ipathfs_get_sb, | 414 | .mount = ipathfs_mount, |
415 | .kill_sb = ipathfs_kill_super, | 415 | .kill_sb = ipathfs_kill_super, |
416 | }; | 416 | }; |
417 | 417 | ||
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 7e433d75c775..f99bddc01716 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
@@ -555,13 +555,13 @@ bail: | |||
555 | return ret; | 555 | return ret; |
556 | } | 556 | } |
557 | 557 | ||
558 | static int qibfs_get_sb(struct file_system_type *fs_type, int flags, | 558 | static struct dentry *qibfs_mount(struct file_system_type *fs_type, int flags, |
559 | const char *dev_name, void *data, struct vfsmount *mnt) | 559 | const char *dev_name, void *data) |
560 | { | 560 | { |
561 | int ret = get_sb_single(fs_type, flags, data, | 561 | struct dentry *ret; |
562 | qibfs_fill_super, mnt); | 562 | ret = mount_single(fs_type, flags, data, qibfs_fill_super); |
563 | if (ret >= 0) | 563 | if (!IS_ERR(ret)) |
564 | qib_super = mnt->mnt_sb; | 564 | qib_super = ret->d_sb; |
565 | return ret; | 565 | return ret; |
566 | } | 566 | } |
567 | 567 | ||
@@ -603,7 +603,7 @@ int qibfs_remove(struct qib_devdata *dd) | |||
603 | static struct file_system_type qibfs_fs_type = { | 603 | static struct file_system_type qibfs_fs_type = { |
604 | .owner = THIS_MODULE, | 604 | .owner = THIS_MODULE, |
605 | .name = "ipathfs", | 605 | .name = "ipathfs", |
606 | .get_sb = qibfs_get_sb, | 606 | .mount = qibfs_mount, |
607 | .kill_sb = qibfs_kill_super, | 607 | .kill_sb = qibfs_kill_super, |
608 | }; | 608 | }; |
609 | 609 | ||