diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-21 11:41:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-28 17:20:45 -0400 |
commit | 1aecca3e83e5da981ade916920d3d2a6b9644cc3 (patch) | |
tree | 441429271018ca27cadcc277f2f959a16d258431 /fs/nfs | |
parent | 256e48bb473b631fbb5aa03d6ed38c652ad3caa7 (diff) |
NFSv3: Don't open code stream position calculation in decode_getacl3resok
Use the new xdr_stream_pos() helper instead.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs3xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs3xdr.c b/fs/nfs/nfs3xdr.c index d64a00ff5a16..5013bdd85ab9 100644 --- a/fs/nfs/nfs3xdr.c +++ b/fs/nfs/nfs3xdr.c | |||
@@ -2341,7 +2341,7 @@ static inline int decode_getacl3resok(struct xdr_stream *xdr, | |||
2341 | if (result->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) | 2341 | if (result->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) |
2342 | goto out; | 2342 | goto out; |
2343 | 2343 | ||
2344 | hdrlen = (u8 *)xdr->p - (u8 *)xdr->iov->iov_base; | 2344 | hdrlen = xdr_stream_pos(xdr); |
2345 | 2345 | ||
2346 | acl = NULL; | 2346 | acl = NULL; |
2347 | if (result->mask & NFS_ACL) | 2347 | if (result->mask & NFS_ACL) |