Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e446d66d authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

nfsd: Remove duplicate define of IDMAP_NAMESZ/IDMAP_TYPE_xx



Just using the macro defined in nfs_idmap.h.

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent faf996a6
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -37,9 +37,7 @@


#include <linux/in.h>
#include <linux/in.h>
#include <linux/sunrpc/svc.h>
#include <linux/sunrpc/svc.h>

#include <linux/nfs_idmap.h>
/* XXX from linux/nfs_idmap.h */
#define IDMAP_NAMESZ 128


#ifdef CONFIG_NFSD_V4
#ifdef CONFIG_NFSD_V4
int nfsd_idmap_init(struct net *);
int nfsd_idmap_init(struct net *);
+0 −3
Original line number Original line Diff line number Diff line
@@ -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 ent {
	struct cache_head h;
	struct cache_head h;
	int               type;		       /* User / Group */
	int               type;		       /* User / Group */