diff options
Diffstat (limited to 'include/linux/nfs_idmap.h')
-rw-r--r-- | include/linux/nfs_idmap.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h index 308c18877018..7eed2012d288 100644 --- a/include/linux/nfs_idmap.h +++ b/include/linux/nfs_idmap.h | |||
@@ -69,36 +69,22 @@ struct nfs_server; | |||
69 | struct nfs_fattr; | 69 | struct nfs_fattr; |
70 | struct nfs4_string; | 70 | struct nfs4_string; |
71 | 71 | ||
72 | #ifdef CONFIG_NFS_USE_NEW_IDMAPPER | 72 | #ifdef CONFIG_NFS_V4 |
73 | |||
74 | int nfs_idmap_init(void); | 73 | int nfs_idmap_init(void); |
75 | void nfs_idmap_quit(void); | 74 | void nfs_idmap_quit(void); |
76 | 75 | #else | |
77 | static inline int nfs_idmap_new(struct nfs_client *clp) | ||
78 | { | ||
79 | return 0; | ||
80 | } | ||
81 | |||
82 | static inline void nfs_idmap_delete(struct nfs_client *clp) | ||
83 | { | ||
84 | } | ||
85 | |||
86 | #else /* CONFIG_NFS_USE_NEW_IDMAPPER not set */ | ||
87 | |||
88 | static inline int nfs_idmap_init(void) | 76 | static inline int nfs_idmap_init(void) |
89 | { | 77 | { |
90 | return 0; | 78 | return 0; |
91 | } | 79 | } |
92 | 80 | ||
93 | static inline void nfs_idmap_quit(void) | 81 | static inline void nfs_idmap_quit(void) |
94 | { | 82 | {} |
95 | } | 83 | #endif |
96 | 84 | ||
97 | int nfs_idmap_new(struct nfs_client *); | 85 | int nfs_idmap_new(struct nfs_client *); |
98 | void nfs_idmap_delete(struct nfs_client *); | 86 | void nfs_idmap_delete(struct nfs_client *); |
99 | 87 | ||
100 | #endif /* CONFIG_NFS_USE_NEW_IDMAPPER */ | ||
101 | |||
102 | void nfs_fattr_init_names(struct nfs_fattr *fattr, | 88 | void nfs_fattr_init_names(struct nfs_fattr *fattr, |
103 | struct nfs4_string *owner_name, | 89 | struct nfs4_string *owner_name, |
104 | struct nfs4_string *group_name); | 90 | struct nfs4_string *group_name); |