Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: Remove duplicate define of IDMAP_NAMESZ/IDMAP_TYPE_xx

Just using the macro defined in nfs_idmap.h.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

Kinglong Mee and committed by
J. Bruce Fields
e446d66d faf996a6

+1 -6
+1 -3
fs/nfsd/idmap.h
··· 37 37 38 38 #include <linux/in.h> 39 39 #include <linux/sunrpc/svc.h> 40 - 41 - /* XXX from linux/nfs_idmap.h */ 42 - #define IDMAP_NAMESZ 128 40 + #include <linux/nfs_idmap.h> 43 41 44 42 #ifdef CONFIG_NFSD_V4 45 43 int nfsd_idmap_init(struct net *);
-3
fs/nfsd/nfs4idmap.c
··· 59 59 * that. 60 60 */ 61 61 62 - #define IDMAP_TYPE_USER 0 63 - #define IDMAP_TYPE_GROUP 1 64 - 65 62 struct ent { 66 63 struct cache_head h; 67 64 int type; /* User / Group */