/* * NM_LOCK: Create an unmonitored lock */ static __be32 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) { dprintk("lockd: NM_LOCK called\n"); argp->monitor = 0; /* just clean the monitor flag */ return nlmsvc_proc_lock(rqstp, argp, resp); }
static int nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) { struct nlm_res res; u32 stat; dprintk("lockd: LOCK_MSG called\n"); if ((stat = nlmsvc_proc_lock(rqstp, argp, &res)) == 0) stat = nlmsvc_callback(rqstp, NLMPROC_LOCK_RES, &res); return stat; }