aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/mon.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-12-04 14:21:24 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-01-06 11:53:52 -0500
commit1e49323c4ab044d05bbc68cf13cadcbd4372468c (patch)
tree5d997638d8595d3698d6e3b2c81292fb09b42ad8 /fs/lockd/mon.c
parent5d254b119823658cc318f88589c6c426b3d0a153 (diff)
NLM: Move the public declaration of nsm_monitor() to lockd.h
Clean up. Make the nlm_host argument "const," and move the public declaration to lockd.h with other NSM public function (nsm_release, eg) and global variable declarations. Add a documenting comment. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd/mon.c')
-rw-r--r--fs/lockd/mon.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index 07e16b81498d..aaaa08e7ae7a 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -69,11 +69,18 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res)
69 return status; 69 return status;
70} 70}
71 71
72/* 72/**
73 * Set up monitoring of a remote host 73 * nsm_monitor - Notify a peer in case we reboot
74 * @host: pointer to nlm_host of peer to notify
75 *
76 * If this peer is not already monitored, this function sends an
77 * upcall to the local rpc.statd to record the name/address of
78 * the peer to notify in case we reboot.
79 *
80 * Returns zero if the peer is monitored by the local rpc.statd;
81 * otherwise a negative errno value is returned.
74 */ 82 */
75int 83int nsm_monitor(const struct nlm_host *host)
76nsm_monitor(struct nlm_host *host)
77{ 84{
78 struct nsm_handle *nsm = host->h_nsmhandle; 85 struct nsm_handle *nsm = host->h_nsmhandle;
79 struct nsm_res res; 86 struct nsm_res res;