Lines Matching refs:fl
117 struct file_lock *fl = &lock->fl; in nlm_decode_lock() local
128 locks_init_lock(fl); in nlm_decode_lock()
129 fl->fl_owner = current->files; in nlm_decode_lock()
130 fl->fl_pid = (pid_t)lock->svid; in nlm_decode_lock()
131 fl->fl_flags = FL_POSIX; in nlm_decode_lock()
132 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm_decode_lock()
137 fl->fl_start = s32_to_loff_t(start); in nlm_decode_lock()
140 fl->fl_end = OFFSET_MAX; in nlm_decode_lock()
142 fl->fl_end = s32_to_loff_t(end); in nlm_decode_lock()
159 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres() local
161 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm_encode_testres()
168 start = loff_t_to_s32(fl->fl_start); in nlm_encode_testres()
169 if (fl->fl_end == OFFSET_MAX) in nlm_encode_testres()
172 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_encode_testres()
198 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
226 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
247 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
259 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
270 locks_init_lock(&lock->fl); in nlmsvc_decode_shareargs()
272 lock->fl.fl_pid = (pid_t)lock->svid; in nlmsvc_decode_shareargs()