projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
256e48b
)
NFSv3: Don't open code stream position calculation in decode_getacl3resok
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 21 Jun 2012 15:41:29 +0000
(11:41 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 28 Jun 2012 21:20:45 +0000
(17:20 -0400)
Use the new xdr_stream_pos() helper instead.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs3xdr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs3xdr.c
b/fs/nfs/nfs3xdr.c
index d64a00ff5a162037045882d82afd00fef290cf2f..5013bdd85ab935eab620f3822de32bc473ccaa06 100644
(file)
--- 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)