aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/idmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r--fs/nfs/idmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 873deb96a6cd..d05148ec9414 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -109,7 +109,7 @@ static struct rpc_pipe_ops idmap_upcall_ops = {
109}; 109};
110 110
111void 111void
112nfs_idmap_new(struct nfs4_client *clp) 112nfs_idmap_new(struct nfs_client *clp)
113{ 113{
114 struct idmap *idmap; 114 struct idmap *idmap;
115 115
@@ -138,7 +138,7 @@ nfs_idmap_new(struct nfs4_client *clp)
138} 138}
139 139
140void 140void
141nfs_idmap_delete(struct nfs4_client *clp) 141nfs_idmap_delete(struct nfs_client *clp)
142{ 142{
143 struct idmap *idmap = clp->cl_idmap; 143 struct idmap *idmap = clp->cl_idmap;
144 144
@@ -491,27 +491,27 @@ static unsigned int fnvhash32(const void *buf, size_t buflen)
491 return (hash); 491 return (hash);
492} 492}
493 493
494int nfs_map_name_to_uid(struct nfs4_client *clp, const char *name, size_t namelen, __u32 *uid) 494int nfs_map_name_to_uid(struct nfs_client *clp, const char *name, size_t namelen, __u32 *uid)
495{ 495{
496 struct idmap *idmap = clp->cl_idmap; 496 struct idmap *idmap = clp->cl_idmap;
497 497
498 return nfs_idmap_id(idmap, &idmap->idmap_user_hash, name, namelen, uid); 498 return nfs_idmap_id(idmap, &idmap->idmap_user_hash, name, namelen, uid);
499} 499}
500 500
501int nfs_map_group_to_gid(struct nfs4_client *clp, const char *name, size_t namelen, __u32 *uid) 501int nfs_map_group_to_gid(struct nfs_client *clp, const char *name, size_t namelen, __u32 *uid)
502{ 502{
503 struct idmap *idmap = clp->cl_idmap; 503 struct idmap *idmap = clp->cl_idmap;
504 504
505 return nfs_idmap_id(idmap, &idmap->idmap_group_hash, name, namelen, uid); 505 return nfs_idmap_id(idmap, &idmap->idmap_group_hash, name, namelen, uid);
506} 506}
507 507
508int nfs_map_uid_to_name(struct nfs4_client *clp, __u32 uid, char *buf) 508int nfs_map_uid_to_name(struct nfs_client *clp, __u32 uid, char *buf)
509{ 509{
510 struct idmap *idmap = clp->cl_idmap; 510 struct idmap *idmap = clp->cl_idmap;
511 511
512 return nfs_idmap_name(idmap, &idmap->idmap_user_hash, uid, buf); 512 return nfs_idmap_name(idmap, &idmap->idmap_user_hash, uid, buf);
513} 513}
514int nfs_map_gid_to_group(struct nfs4_client *clp, __u32 uid, char *buf) 514int nfs_map_gid_to_group(struct nfs_client *clp, __u32 uid, char *buf)
515{ 515{
516 struct idmap *idmap = clp->cl_idmap; 516 struct idmap *idmap = clp->cl_idmap;
517 517