diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 22:05:17 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-31 01:04:45 +0200 |
commit | e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24 (patch) | |
tree | cabdb43bbc11b40fd95e7e2742bc8a64b76241cb /fs/nfs/namespace.c | |
parent | NFS: Add version registering framework (diff) | |
download | linux-e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24.tar.xz linux-e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24.zip |
NFS: Remove the NFS v4 xdev mount function
I can now share this code with the v2 and v3 code by using the NFS
subversion structure.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index 08b9c93675da..0f699fefee6e 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c @@ -195,20 +195,7 @@ static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, const char *devname, struct nfs_clone_mount *mountdata) { -#ifdef CONFIG_NFS_V4 - struct vfsmount *mnt = ERR_PTR(-EINVAL); - switch (server->nfs_client->rpc_ops->version) { - case 2: - case 3: - mnt = vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); - break; - case 4: - mnt = vfs_kern_mount(&nfs4_xdev_fs_type, 0, devname, mountdata); - } - return mnt; -#else return vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); -#endif } /** |