linux_old1/include/linux/lockd
Jeff Layton 6cde4de807 lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_lock
nlmsvc_lock calls nlmsvc_lookup_host to find a nlm_host struct. The
callers of this function, however, call nlmsvc_retrieve_args or
nlm4svc_retrieve_args, which also return a nlm_host struct.

Change nlmsvc_lock 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.

Since nlmsvc_testlock() now just uses the caller's reference, we no
longer need to get or release it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2008-07-15 14:53:33 -04:00
..
bind.h NLM: Introduce an arguments structure for nlmclnt_init() 2008-01-30 02:06:07 -05:00
debug.h
lockd.h lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_lock 2008-07-15 14:53:33 -04:00
nlm.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
share.h [PATCH] lockd endianness annotations 2006-10-20 10:26:40 -07:00
sm_inter.h lockd: introduce new function to encode private argument in SM_MON requests 2008-03-19 18:01:10 -04:00
xdr.h NLM: Fix sign of length of NLM variable length strings 2008-02-01 16:42:02 -05:00
xdr4.h NLM: Fix sparse warnings 2007-05-14 19:33:46 -04:00