android_kernel_xiaomi_sm7250/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
debug.h
lockd.h lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_lock 2008-07-15 14:53:33 -04:00
nlm.h
share.h
sm_inter.h lockd: introduce new function to encode private argument in SM_MON requests 2008-03-19 18:01:10 -04:00
xdr4.h
xdr.h