Skip to content

Commit

Permalink
NFSv3: Don't open code stream position calculation in decode_getacl3r…
Browse files Browse the repository at this point in the history
…esok

Use the new xdr_stream_pos() helper instead.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jun 28, 2012
1 parent 256e48b commit 1aecca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs3xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,7 @@ static inline int decode_getacl3resok(struct xdr_stream *xdr,
if (result->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT))
goto out;

hdrlen = (u8 *)xdr->p - (u8 *)xdr->iov->iov_base;
hdrlen = xdr_stream_pos(xdr);

acl = NULL;
if (result->mask & NFS_ACL)
Expand Down

0 comments on commit 1aecca3

Please sign in to comment.