diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-02-24 14:14:51 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-01 17:10:16 -0500 |
commit | 57e62324e469e092ecc6c94a7a86fe4bd6ac5172 (patch) | |
tree | 162a5ecd487bc842bc07cc8d4c14d4d1a337813d /include/linux/nfs_idmap.h | |
parent | 59e6b9c11341e3b8ac5925427c903d4eae435bd8 (diff) |
NFS: Store the legacy idmapper result in the keyring
This patch removes the old hashmap-based caching and instead uses a
"request key actor" to place an upcall to the legacy idmapper rather
than going through /sbin/request-key. This will only be used as a
fallback if /etc/request-key.conf isn't configured to use nfsidmap.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_idmap.h')
-rw-r--r-- | include/linux/nfs_idmap.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h index 7eed2012d288..717fa5019e75 100644 --- a/include/linux/nfs_idmap.h +++ b/include/linux/nfs_idmap.h | |||
@@ -69,19 +69,8 @@ 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_V4 | ||
73 | int nfs_idmap_init(void); | 72 | int nfs_idmap_init(void); |
74 | void nfs_idmap_quit(void); | 73 | void nfs_idmap_quit(void); |
75 | #else | ||
76 | static inline int nfs_idmap_init(void) | ||
77 | { | ||
78 | return 0; | ||
79 | } | ||
80 | |||
81 | static inline void nfs_idmap_quit(void) | ||
82 | {} | ||
83 | #endif | ||
84 | |||
85 | int nfs_idmap_new(struct nfs_client *); | 74 | int nfs_idmap_new(struct nfs_client *); |
86 | void nfs_idmap_delete(struct nfs_client *); | 75 | void nfs_idmap_delete(struct nfs_client *); |
87 | 76 | ||