From: NeilBrown Date: Mon, 14 Jul 2014 01:28:20 +0000 (+1000) Subject: NFS: nfs4_lookup_revalidate: only evaluate parent if it will be used. X-Git-Tag: omap-for-v3.17/fixes-against-rc2~82^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49317a7fdaa462b09b9bb4942b64c3a3316bd564;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed