From: Jeff Layton Date: Tue, 15 Jul 2008 18:06:48 +0000 (-0400) Subject: lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_testlock X-Git-Tag: v2.6.27-rc1~961^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f920d5e29f86d3425a68e1c3bc264d1f6f55112;p=pandora-kernel.git lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_testlock nlmsvc_testlock calls nlmsvc_lookup_host to find a nlm_host struct. The callers of this functions, however, call nlmsvc_retrieve_args or nlm4svc_retrieve_args, which also return a nlm_host struct. Change nlmsvc_testlock to take a host arg instead of calling nlmsvc_lookup_host itself and change the callers to pass a pointer to the nlm_host they've already found. We take a reference to host in the place where nlmsvc_testlock() previous did a new lookup, so the reference counting is unchanged from before. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed