summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/acl.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2013-08-27 21:32:25 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-05-28 14:52:34 -0400
commitddd1ea56367202f6c99135cd59de7a97af4c4ffd (patch)
tree623a164aed98fb1d4a3d7ecc337acc88a5b27fec /fs/nfsd/acl.h
parent5f4ab9458755eddc66912a15319363bf311f7fc8 (diff)
downloadblackbird-obmc-linux-ddd1ea56367202f6c99135cd59de7a97af4c4ffd.tar.gz
blackbird-obmc-linux-ddd1ea56367202f6c99135cd59de7a97af4c4ffd.zip
nfsd4: use xdr_reserve_space in attribute encoding
This is a cosmetic change for now; no change in behavior. Note we're just depending on xdr_reserve_space to do the bounds checking for us, we're not really depending on its adjustment of iovec or xdr_buf lengths yet, as those are fixed up by as necessary after the fact by read-link operations and by nfs4svc_encode_compoundres. However we do have to update xdr->iov on read-like operations to prevent xdr_reserve_space from messing with the already-fixed-up length of the the head. When the attribute encoding fails partway through we have to undo the length adjustments made so far. We do it manually for now, but later patches will add an xdr_truncate_encode() helper to handle cases like this. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/acl.h')
-rw-r--r--fs/nfsd/acl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/acl.h b/fs/nfsd/acl.h
index b481e1f5eecc..a986ceb6fd0d 100644
--- a/fs/nfsd/acl.h
+++ b/fs/nfsd/acl.h
@@ -49,7 +49,7 @@ struct svc_rqst;
struct nfs4_acl *nfs4_acl_new(int);
int nfs4_acl_get_whotype(char *, u32);
-__be32 nfs4_acl_write_who(int who, __be32 **p, int *len);
+__be32 nfs4_acl_write_who(struct xdr_stream *xdr, int who);
int nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry,
struct nfs4_acl **acl);
OpenPOWER on IntegriCloud