Lines Matching refs:fl
108 struct file_lock *fl = &lock->fl; in nlm4_decode_lock() local
119 locks_init_lock(fl); in nlm4_decode_lock()
120 fl->fl_owner = current->files; in nlm4_decode_lock()
121 fl->fl_pid = (pid_t)lock->svid; in nlm4_decode_lock()
122 fl->fl_flags = FL_POSIX; in nlm4_decode_lock()
123 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock()
128 fl->fl_start = s64_to_loff_t(start); in nlm4_decode_lock()
131 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock()
133 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock()
151 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres() local
153 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
160 start = loff_t_to_s64(fl->fl_start); in nlm4_encode_testres()
161 if (fl->fl_end == OFFSET_MAX) in nlm4_encode_testres()
164 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_encode_testres()
169 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
170 (long long)fl->fl_start, (long long)fl->fl_end); in nlm4_encode_testres()
193 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
218 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
238 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
248 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
258 locks_init_lock(&lock->fl); in nlm4svc_decode_shareargs()
260 lock->fl.fl_pid = (pid_t)lock->svid; in nlm4svc_decode_shareargs()