mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 23:43:02 +00:00
nfsd4: use more generous NFS4_ACL_MAX
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
0da7b19cc3
commit
d139977d00
|
@ -39,9 +39,13 @@ struct nfs4_acl;
|
||||||
struct svc_fh;
|
struct svc_fh;
|
||||||
struct svc_rqst;
|
struct svc_rqst;
|
||||||
|
|
||||||
/* Maximum ACL we'll accept from client; chosen (somewhat arbitrarily) to
|
/*
|
||||||
* fit in a page: */
|
* Maximum ACL we'll accept from a client; chosen (somewhat
|
||||||
#define NFS4_ACL_MAX 170
|
* arbitrarily) so that kmalloc'ing the ACL shouldn't require a
|
||||||
|
* high-order allocation. This allows 204 ACEs on x86_64:
|
||||||
|
*/
|
||||||
|
#define NFS4_ACL_MAX ((PAGE_SIZE - sizeof(struct nfs4_acl)) \
|
||||||
|
/ sizeof(struct nfs4_ace))
|
||||||
|
|
||||||
struct nfs4_acl *nfs4_acl_new(int);
|
struct nfs4_acl *nfs4_acl_new(int);
|
||||||
int nfs4_acl_get_whotype(char *, u32);
|
int nfs4_acl_get_whotype(char *, u32);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user