]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NFS: Remove CONFIG_NFS_V4 checks from nfs_idmap.h
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Wed, 15 Apr 2015 17:00:04 +0000 (13:00 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 23 Apr 2015 19:16:13 +0000 (15:16 -0400)
The idmapper is completely internal to the NFS v4 module, so this macro
will always evaluate to true.  This patch also removes unnecessary
includes of this file from the generic NFS client.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/client.c
fs/nfs/super.c
include/linux/nfs_idmap.h

index 19874151e95c9908660132e6a3e2e6d7d2d3c8e4..892aefff36300a0861f9bf5d43cb7a4b5069d873 100644 (file)
@@ -31,7 +31,6 @@
 #include <linux/lockd/bind.h>
 #include <linux/seq_file.h>
 #include <linux/mount.h>
-#include <linux/nfs_idmap.h>
 #include <linux/vfs.h>
 #include <linux/inet.h>
 #include <linux/in6.h>
index 322b2de02988fa6479c2d2831a5e5d70dfdad7c9..5cc3da9d931416608254b3b950358b85dae7da62 100644 (file)
@@ -43,7 +43,6 @@
 #include <linux/seq_file.h>
 #include <linux/mount.h>
 #include <linux/namei.h>
-#include <linux/nfs_idmap.h>
 #include <linux/vfs.h>
 #include <linux/inet.h>
 #include <linux/in6.h>
index 333844e38f66c4918d3693a96cfdb0b50f9b031d..daaf3ea5e9d847665324fb4e4a3d6345c4e1b601 100644 (file)
@@ -46,19 +46,8 @@ struct nfs_server;
 struct nfs_fattr;
 struct nfs4_string;
 
-#if IS_ENABLED(CONFIG_NFS_V4)
 int nfs_idmap_init(void);
 void nfs_idmap_quit(void);
-#else
-static inline int nfs_idmap_init(void)
-{
-       return 0;
-}
-
-static inline void nfs_idmap_quit(void)
-{}
-#endif
-
 int nfs_idmap_new(struct nfs_client *);
 void nfs_idmap_delete(struct nfs_client *);