diff options
-rw-r--r-- | fs/lockd/mon.c | 13 |
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) | |||
202 | return p; | 202 | return p; |
203 | } | 203 | } |
204 | 204 | ||
205 | /* | ||
206 | * The "mon_id" argument specifies the non-private arguments | ||
207 | * of an SM_MON or SM_UNMON call. | ||
208 | */ | ||
209 | static __be32 *xdr_encode_mon_id(__be32 *p, struct nsm_args *argp) | ||
210 | { | ||
211 | p = xdr_encode_mon_name(p, argp); | ||
212 | if (!p) | ||
213 | return ERR_PTR(-EIO); | ||
214 | |||
215 | return xdr_encode_my_id(p, argp); | ||
216 | } | ||
217 | |||
205 | static __be32 * | 218 | static __be32 * |
206 | xdr_encode_common(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) | 219 | xdr_encode_common(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) |
207 | { | 220 | { |