NSM: Generate NSMPROC_MON's "priv" argument when nsm_handle is created
authorChuck Lever <chuck.lever@oracle.com>
Sat, 6 Dec 2008 00:03:16 +0000 (19:03 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:53 +0000 (11:53 -0500)
commit7e44d3bea21fbb9494930d1cd35ca92a9a4a3279
tree377fe5801ab1108aee2bc7f72d1b32618aa35e7f
parent05f3a9af58180d24a9decedd71d4587935782d70
NSM: Generate NSMPROC_MON's "priv" argument when nsm_handle is created

Introduce a new data type, used by both the in-kernel NLM and NSM
implementations, that is used to manage the opaque "priv" argument
for the NSMPROC_MON and NLMPROC_SM_NOTIFY calls.

Construct the "priv" cookie when the nsm_handle is created.

The nsm_init_private() function may look a little strange, but it is
roughly equivalent to how the XDR encoder formed the "priv" argument.
It's going to go away soon.

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
include/linux/lockd/sm_inter.h
include/linux/lockd/xdr.h