NSM: Add nsm_lookup() function
authorChuck Lever <chuck.lever@oracle.com>
Sat, 6 Dec 2008 00:03:46 +0000 (19:03 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:54 +0000 (11:53 -0500)
commit3420a8c4359a189f7d854ed7075d151257415447
treedbcfbcdd9383bc4a9bb832f6b4a8876461495dc8
parent576df4634e37e46b441fefb91915184edb13bb94
NSM: Add nsm_lookup() function

Introduce a new API to fs/lockd/mon.c that allows nlm_host_rebooted()
to lookup up nsm_handles via the contents of an nlm_reboot struct.

The new function is equivalent to calling nsm_find() with @create set
to zero, but it takes a struct nlm_reboot instead of separate
arguments.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/mon.c
include/linux/lockd/lockd.h