summaryrefslogtreecommitdiff
path: root/fs/ecryptfs/mmap.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-07-14 01:28:20 (GMT)
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-08-03 21:14:11 (GMT)
commit49317a7fdaa462b09b9bb4942b64c3a3316bd564 (patch)
treecbdfc9d24d867498dbf22fb456d697944fb5a1b5 /fs/ecryptfs/mmap.c
parent1f70ef96b176bdb3b75230ec68850d83736b387b (diff)
downloadlinux-49317a7fdaa462b09b9bb4942b64c3a3316bd564.tar.xz
NFS: nfs4_lookup_revalidate: only evaluate parent if it will be used.
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>
Diffstat (limited to 'fs/ecryptfs/mmap.c')
0 files changed, 0 insertions, 0 deletions