android_kernel_xiaomi_sm8350/fs/lockd
Jeff Layton 8f920d5e29 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 <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2008-07-15 14:26:52 -04:00
..
clntlock.c
clntproc.c fs: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
host.c Merge git://git.linux-nfs.org/projects/trondmy/nfs-2.6 2008-04-24 11:46:16 -07:00
Makefile
mon.c lockd: introduce new function to encode private argument in SM_MON requests 2008-03-19 18:01:10 -04:00
svc4proc.c lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_testlock 2008-07-15 14:26:52 -04:00
svc.c lockd: close potential race with rapid lockd_up/lockd_down cycle 2008-06-23 13:02:50 -04:00
svclock.c lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_testlock 2008-07-15 14:26:52 -04:00
svcproc.c lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_testlock 2008-07-15 14:26:52 -04:00
svcshare.c lockd: fix sparse warning in svcshare.c 2008-04-23 16:13:39 -04:00
svcsubs.c lockd: unlock lockd locks held for a certain filesystem 2008-04-25 13:00:11 -04:00
xdr4.c
xdr.c