Lines Matching refs:fl
116 struct file_lock *fl = &lock->fl; in nlm_decode_lock() local
127 locks_init_lock(fl); in nlm_decode_lock()
128 fl->fl_owner = current->files; in nlm_decode_lock()
129 fl->fl_pid = (pid_t)lock->svid; in nlm_decode_lock()
130 fl->fl_flags = FL_POSIX; in nlm_decode_lock()
131 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm_decode_lock()
136 fl->fl_start = s32_to_loff_t(start); in nlm_decode_lock()
139 fl->fl_end = OFFSET_MAX; in nlm_decode_lock()
141 fl->fl_end = s32_to_loff_t(end); in nlm_decode_lock()
158 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres() local
160 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm_encode_testres()
167 start = loff_t_to_s32(fl->fl_start); in nlm_encode_testres()
168 if (fl->fl_end == OFFSET_MAX) in nlm_encode_testres()
171 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_encode_testres()
196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
241 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
251 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
261 locks_init_lock(&lock->fl); in nlmsvc_decode_shareargs()
263 lock->fl.fl_pid = (pid_t)lock->svid; in nlmsvc_decode_shareargs()