[PATCH] knfsd: nfsd4: represent nfsv4 acl with array instead of linked list
Simplify the memory management and code a bit by representing acls with an array instead of a linked list. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
575a6290f0
commit
28e05dd845
@@ -105,12 +105,11 @@ struct nfs4_ace {
|
||||
uint32_t access_mask;
|
||||
int whotype;
|
||||
uid_t who;
|
||||
struct list_head l_ace;
|
||||
};
|
||||
|
||||
struct nfs4_acl {
|
||||
uint32_t naces;
|
||||
struct list_head ace_head;
|
||||
struct nfs4_ace aces[0];
|
||||
};
|
||||
|
||||
typedef struct { char data[NFS4_VERIFIER_SIZE]; } nfs4_verifier;
|
||||
|
Reference in New Issue
Block a user