git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e00b8a2
)
NFS: Micro-optimize nfs4_decode_dirent()
author
Chuck Lever
<chuck.lever@oracle.com>
Fri, 28 Jan 2011 17:40:55 +0000
(12:40 -0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 28 Jan 2011 18:37:35 +0000
(13:37 -0500)
Make the decoding of NFSv4 directory entries slightly more efficient
by:
1. Avoiding unnecessary byte swapping when checking XDR booleans,
and
2. Not bumping "p" when its value will be immediately replaced by
xdr_inline_decode()
This commit makes nfs4_decode_dirent() consistent with similar logic
in the other two decode_dirent() functions.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c
patch
|
blob
|
history
diff --cc
fs/nfs/nfs4xdr.c
Simple merge