Commit 8a5d34f3 authored by Neil Brown's avatar Neil Brown Committed by David S. Miller

[PATCH] kNFSd 4: Discard svc_uidmap structure

It is un-used and never will be.  uid mapping will be done a
different way (if at all).
parent 151ddf2e
......@@ -838,7 +838,6 @@ exp_freeclient(svc_client *clp)
{
exp_unhashclient(clp);
/* umap_free(&(clp->cl_umap)); */
exp_unexport_all(clp);
kfree (clp);
}
......
......@@ -23,23 +23,5 @@
*/
void nfsd_setuser(struct svc_rqst *, struct svc_export *);
#if 0
/*
* These must match the actual size of uid_t and gid_t
*/
#define UGID_BITS (8 * sizeof(uid_t))
#define UGID_SHIFT 8
#define UGID_MASK ((1 << UGID_SHIFT) - 1)
#define UGID_NRENTRIES ((1 << (UGID_BITS - UGID_SHIFT)) + 1)
#define UGID_NONE ((unsigned short)-1)
typedef struct svc_uidmap {
uid_t * um_ruid[UGID_NRENTRIES];
uid_t * um_luid[UGID_NRENTRIES];
gid_t * um_rgid[UGID_NRENTRIES];
gid_t * um_lgid[UGID_NRENTRIES];
} svc_uidmap;
#endif
#endif /* __KERNEL__ */
#endif /* LINUX_NFSD_AUTH_H */
......@@ -54,7 +54,6 @@ struct svc_client {
int cl_idlen;
int cl_naddr;
struct in_addr cl_addr[NFSCLNT_ADDRMAX];
struct svc_uidmap * cl_umap;
struct list_head cl_export[NFSCLNT_EXPMAX];
struct list_head cl_expfsid[NFSCLNT_EXPMAX];
struct list_head cl_list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment