Skip to content

Commit

Permalink
nfsd: Remove duplicate define of IDMAP_NAMESZ/IDMAP_TYPE_xx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kinglongmee authored and J. Bruce Fields committed Jul 20, 2015
1 parent faf996a commit e446d66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions fs/nfsd/idmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@

#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 *);
Expand Down
3 changes: 0 additions & 3 deletions fs/nfsd/nfs4idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ MODULE_PARM_DESC(nfs4_disable_idmapping,
* that.
*/

#define IDMAP_TYPE_USER 0
#define IDMAP_TYPE_GROUP 1

struct ent {
struct cache_head h;
int type; /* User / Group */
Expand Down

0 comments on commit e446d66

Please sign in to comment.