diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-06-24 23:51:21 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-08 23:14:27 +0200 |
commit | bcaab953b1d3790c724a211f2452b574fd49a7ce (patch) | |
tree | 27ca81379f29efdf4267337da9434a3eeabdae31 /fs/nfsd/nfs4xdr.c | |
parent | nfsd4: define svcxdr_dupstr to share some common code (diff) | |
download | linux-bcaab953b1d3790c724a211f2452b574fd49a7ce.tar.xz linux-bcaab953b1d3790c724a211f2452b574fd49a7ce.zip |
nfsd4: remove nfs4_acl_new
This is a not-that-useful kmalloc wrapper. And I'd like one of the
callers to actually use something other than kmalloc.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 8fb0f3718202..fea41046427c 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -309,7 +309,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval, if (nace > NFS4_ACL_MAX) return nfserr_fbig; - *acl = nfs4_acl_new(nace); + *acl = kmalloc(nfs4_acl_bytes(nace), GFP_KERNEL); if (*acl == NULL) return nfserr_jukebox; |