From: Trond Myklebust Date: Thu, 21 Jun 2012 15:41:29 +0000 (-0400) Subject: NFSv3: Don't open code stream position calculation in decode_getacl3resok X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1aecca3e83e5da981ade916920d3d2a6b9644cc3;p=linux-beck.git NFSv3: Don't open code stream position calculation in decode_getacl3resok Use the new xdr_stream_pos() helper instead. Signed-off-by: Trond Myklebust --- 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, 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)