summaryrefslogtreecommitdiffstats
path: root/fs/nfs/Makefile
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-30 16:05:23 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-30 19:06:41 -0400
commitddda8e0aa8b955e20cb80908189bfa154ab54837 (patch)
treeff5b1041ce86c76519c1b824161ce5d7ad2e49db /fs/nfs/Makefile
parentfac1e8e4ef417e958060a6c3a061cc1a180bd8ae (diff)
downloadlinux-stable-ddda8e0aa8b955e20cb80908189bfa154ab54837.tar.gz
linux-stable-ddda8e0aa8b955e20cb80908189bfa154ab54837.tar.bz2
linux-stable-ddda8e0aa8b955e20cb80908189bfa154ab54837.zip
NFS: Convert v2 into a module
The module (nfs2.ko) will be created in the same directory as nfs.ko and will be automatically loaded the first time you try to mount over NFS v2. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/Makefile')
-rw-r--r--fs/nfs/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
index 7ca0125da65e..df61db41bfa8 100644
--- a/fs/nfs/Makefile
+++ b/fs/nfs/Makefile
@@ -9,7 +9,6 @@ nfs-y := client.o dir.o file.o getroot.o inode.o super.o \
write.o namespace.o mount_clnt.o \
dns_resolve.o cache_lib.o
nfs-$(CONFIG_ROOT_NFS) += nfsroot.o
-nfs-$(CONFIG_NFS_V2) += nfs2super.o proc.o nfs2xdr.o
nfs-$(CONFIG_NFS_V3) += nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
nfs-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
nfs-$(CONFIG_NFS_V4) += nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o \
@@ -25,6 +24,9 @@ endif
nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
+obj-$(CONFIG_NFS_V2) += nfs2.o
+nfs2-y := nfs2super.o proc.o nfs2xdr.o
+
obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o