diff options
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
| -rw-r--r-- | net/sunrpc/rpc_pipe.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 7df92d237cb8..10a17a37ec4e 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | #include <linux/sunrpc/rpc_pipe_fs.h> | 28 | #include <linux/sunrpc/rpc_pipe_fs.h> |
| 29 | #include <linux/sunrpc/cache.h> | 29 | #include <linux/sunrpc/cache.h> |
| 30 | 30 | ||
| 31 | static struct vfsmount *rpc_mount __read_mostly; | 31 | static struct vfsmount *rpc_mnt __read_mostly; |
| 32 | static int rpc_mount_count; | 32 | static int rpc_mount_count; |
| 33 | 33 | ||
| 34 | static struct file_system_type rpc_pipe_fs_type; | 34 | static struct file_system_type rpc_pipe_fs_type; |
| @@ -417,16 +417,16 @@ struct vfsmount *rpc_get_mount(void) | |||
| 417 | { | 417 | { |
| 418 | int err; | 418 | int err; |
| 419 | 419 | ||
| 420 | err = simple_pin_fs(&rpc_pipe_fs_type, &rpc_mount, &rpc_mount_count); | 420 | err = simple_pin_fs(&rpc_pipe_fs_type, &rpc_mnt, &rpc_mount_count); |
| 421 | if (err != 0) | 421 | if (err != 0) |
| 422 | return ERR_PTR(err); | 422 | return ERR_PTR(err); |
| 423 | return rpc_mount; | 423 | return rpc_mnt; |
| 424 | } | 424 | } |
| 425 | EXPORT_SYMBOL_GPL(rpc_get_mount); | 425 | EXPORT_SYMBOL_GPL(rpc_get_mount); |
| 426 | 426 | ||
| 427 | void rpc_put_mount(void) | 427 | void rpc_put_mount(void) |
| 428 | { | 428 | { |
| 429 | simple_release_fs(&rpc_mount, &rpc_mount_count); | 429 | simple_release_fs(&rpc_mnt, &rpc_mount_count); |
| 430 | } | 430 | } |
| 431 | EXPORT_SYMBOL_GPL(rpc_put_mount); | 431 | EXPORT_SYMBOL_GPL(rpc_put_mount); |
| 432 | 432 | ||
| @@ -1018,17 +1018,17 @@ rpc_fill_super(struct super_block *sb, void *data, int silent) | |||
| 1018 | return 0; | 1018 | return 0; |
| 1019 | } | 1019 | } |
| 1020 | 1020 | ||
| 1021 | static int | 1021 | static struct dentry * |
| 1022 | rpc_get_sb(struct file_system_type *fs_type, | 1022 | rpc_mount(struct file_system_type *fs_type, |
| 1023 | int flags, const char *dev_name, void *data, struct vfsmount *mnt) | 1023 | int flags, const char *dev_name, void *data) |
| 1024 | { | 1024 | { |
| 1025 | return get_sb_single(fs_type, flags, data, rpc_fill_super, mnt); | 1025 | return mount_single(fs_type, flags, data, rpc_fill_super); |
| 1026 | } | 1026 | } |
| 1027 | 1027 | ||
| 1028 | static struct file_system_type rpc_pipe_fs_type = { | 1028 | static struct file_system_type rpc_pipe_fs_type = { |
| 1029 | .owner = THIS_MODULE, | 1029 | .owner = THIS_MODULE, |
| 1030 | .name = "rpc_pipefs", | 1030 | .name = "rpc_pipefs", |
| 1031 | .get_sb = rpc_get_sb, | 1031 | .mount = rpc_mount, |
| 1032 | .kill_sb = kill_litter_super, | 1032 | .kill_sb = kill_litter_super, |
| 1033 | }; | 1033 | }; |
| 1034 | 1034 | ||
