diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2015-04-15 13:00:04 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-04-23 15:16:13 -0400 |
commit | f9ebd61855253078fe8b07bacaf516337f8078e8 (patch) | |
tree | dc48d13b9bd445627db1b20bef63c782c53fa17c | |
parent | 7c61f0d3897eeeff6f3294adb9f910ddefa8035a (diff) |
NFS: Remove CONFIG_NFS_V4 checks from nfs_idmap.h
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>
-rw-r--r-- | fs/nfs/client.c | 1 | ||||
-rw-r--r-- | fs/nfs/super.c | 1 | ||||
-rw-r--r-- | include/linux/nfs_idmap.h | 11 |
3 files changed, 0 insertions, 13 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 19874151e95c..892aefff3630 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/lockd/bind.h> | 31 | #include <linux/lockd/bind.h> |
32 | #include <linux/seq_file.h> | 32 | #include <linux/seq_file.h> |
33 | #include <linux/mount.h> | 33 | #include <linux/mount.h> |
34 | #include <linux/nfs_idmap.h> | ||
35 | #include <linux/vfs.h> | 34 | #include <linux/vfs.h> |
36 | #include <linux/inet.h> | 35 | #include <linux/inet.h> |
37 | #include <linux/in6.h> | 36 | #include <linux/in6.h> |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 322b2de02988..5cc3da9d9314 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <linux/seq_file.h> | 43 | #include <linux/seq_file.h> |
44 | #include <linux/mount.h> | 44 | #include <linux/mount.h> |
45 | #include <linux/namei.h> | 45 | #include <linux/namei.h> |
46 | #include <linux/nfs_idmap.h> | ||
47 | #include <linux/vfs.h> | 46 | #include <linux/vfs.h> |
48 | #include <linux/inet.h> | 47 | #include <linux/inet.h> |
49 | #include <linux/in6.h> | 48 | #include <linux/in6.h> |
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h index 333844e38f66..daaf3ea5e9d8 100644 --- a/include/linux/nfs_idmap.h +++ b/include/linux/nfs_idmap.h | |||
@@ -46,19 +46,8 @@ struct nfs_server; | |||
46 | struct nfs_fattr; | 46 | struct nfs_fattr; |
47 | struct nfs4_string; | 47 | struct nfs4_string; |
48 | 48 | ||
49 | #if IS_ENABLED(CONFIG_NFS_V4) | ||
50 | int nfs_idmap_init(void); | 49 | int nfs_idmap_init(void); |
51 | void nfs_idmap_quit(void); | 50 | void nfs_idmap_quit(void); |
52 | #else | ||
53 | static inline int nfs_idmap_init(void) | ||
54 | { | ||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | static inline void nfs_idmap_quit(void) | ||
59 | {} | ||
60 | #endif | ||
61 | |||
62 | int nfs_idmap_new(struct nfs_client *); | 51 | int nfs_idmap_new(struct nfs_client *); |
63 | void nfs_idmap_delete(struct nfs_client *); | 52 | void nfs_idmap_delete(struct nfs_client *); |
64 | 53 | ||