diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:17 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:04:45 -0400 |
commit | e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24 (patch) | |
tree | cabdb43bbc11b40fd95e7e2742bc8a64b76241cb /fs/nfs/namespace.c | |
parent | ab7017a3a0a64b953e091619c30413b3721d925d (diff) | |
download | kernel_goldelico_gta04-e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24.zip kernel_goldelico_gta04-e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24.tar.gz kernel_goldelico_gta04-e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24.tar.bz2 |
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 08b9c93..0f699fe 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 } /** |