summaryrefslogtreecommitdiffstats
path: root/fs/lockd/mon.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-03-14 19:25:53 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-03-19 23:01:04 +0100
commitea72a7f170e686baf00ceee57b6197bef686889c (patch)
treeb31106e27f57a4a4858c0f13efd30cc1938bf496 /fs/lockd/mon.c
parentlockd: refactor SM_MON my_id argument encoder (diff)
downloadlinux-ea72a7f170e686baf00ceee57b6197bef686889c.tar.xz
linux-ea72a7f170e686baf00ceee57b6197bef686889c.zip
lockd: document use of mon_id argument in SM_MON requests
Clean up: document the argument type that xdr_encode_common() is marshalling by introducing a new function. The new function will replace xdr_encode_common() in just a sec. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd/mon.c')
-rw-r--r--fs/lockd/mon.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index 06216d6715f7..3935d7b604f5 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -202,6 +202,19 @@ static __be32 *xdr_encode_my_id(__be32 *p, struct nsm_args *argp)
return p;
}
+/*
+ * The "mon_id" argument specifies the non-private arguments
+ * of an SM_MON or SM_UNMON call.
+ */
+static __be32 *xdr_encode_mon_id(__be32 *p, struct nsm_args *argp)
+{
+ p = xdr_encode_mon_name(p, argp);
+ if (!p)
+ return ERR_PTR(-EIO);
+
+ return xdr_encode_my_id(p, argp);
+}
+
static __be32 *
xdr_encode_common(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp)
{