Lines Matching refs:fl
109 struct file_lock *fl = &lock->fl; in nlm4_decode_lock() local
120 locks_init_lock(fl); in nlm4_decode_lock()
121 fl->fl_owner = current->files; in nlm4_decode_lock()
122 fl->fl_pid = (pid_t)lock->svid; in nlm4_decode_lock()
123 fl->fl_flags = FL_POSIX; in nlm4_decode_lock()
124 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock()
129 fl->fl_start = s64_to_loff_t(start); in nlm4_decode_lock()
132 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock()
134 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock()
152 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres() local
154 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
161 start = loff_t_to_s64(fl->fl_start); in nlm4_encode_testres()
162 if (fl->fl_end == OFFSET_MAX) in nlm4_encode_testres()
165 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_encode_testres()
170 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
171 (long long)fl->fl_start, (long long)fl->fl_end); in nlm4_encode_testres()
195 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
223 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
244 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
256 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
267 locks_init_lock(&lock->fl); in nlm4svc_decode_shareargs()
269 lock->fl.fl_pid = (pid_t)lock->svid; in nlm4svc_decode_shareargs()