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:
1f70ef9
)
NFS: nfs4_lookup_revalidate: only evaluate parent if it will be used.
author
NeilBrown
<neilb@suse.de>
Mon, 14 Jul 2014 01:28:20 +0000
(11:28 +1000)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Sun, 3 Aug 2014 21:14:11 +0000
(17:14 -0400)
nfs4_lookup_revalidate only uses 'parent' to get 'dir', and only
uses 'dir' if 'inode == NULL'.
So we don't need to find out what 'parent' or 'dir' is until we
know that 'inode' is NULL.
By moving 'dget_parent' inside the 'if', we can reduce the number of
call sites for 'dput(parent)'.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c
patch
|
blob
|
history
diff --cc
fs/nfs/dir.c
Simple merge