nfsd: Remove duplicate define of IDMAP_NAMESZ/IDMAP_TYPE_xx
authorKinglong Mee <kinglongmee@gmail.com>
Fri, 3 Jul 2015 11:36:14 +0000 (19:36 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 20 Jul 2015 18:58:46 +0000 (14:58 -0400)
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>
fs/nfsd/idmap.h
fs/nfsd/nfs4idmap.c

index a3f34900091f492d28132c6cf1c90a4c836b7efe..23cc85d1efdd63d91e4d9e7aa4dfce387b22acdf 100644 (file)
@@ -37,9 +37,7 @@
 
 #include <linux/in.h>
 #include <linux/sunrpc/svc.h>
 
 #include <linux/in.h>
 #include <linux/sunrpc/svc.h>
-
-/* XXX from linux/nfs_idmap.h */
-#define IDMAP_NAMESZ 128
+#include <linux/nfs_idmap.h>
 
 #ifdef CONFIG_NFSD_V4
 int nfsd_idmap_init(struct net *);
 
 #ifdef CONFIG_NFSD_V4
 int nfsd_idmap_init(struct net *);
index e1b3d3d472da70d08f4392b01e206a0224d54767..5b20577dcdd233162d8030003758274d7619d038 100644 (file)
@@ -59,9 +59,6 @@ MODULE_PARM_DESC(nfs4_disable_idmapping,
  * that.
  */
 
  * that.
  */
 
-#define IDMAP_TYPE_USER  0
-#define IDMAP_TYPE_GROUP 1
-
 struct ent {
        struct cache_head h;
        int               type;                /* User / Group */
 struct ent {
        struct cache_head h;
        int               type;                /* User / Group */