• Home
  • Raw
  • Download

Lines Matching refs:fl

124 	struct file_lock	*fl = &lock->fl;  in nlm4_decode_lock()  local
135 locks_init_lock(fl); in nlm4_decode_lock()
136 fl->fl_owner = current->files; in nlm4_decode_lock()
137 fl->fl_pid = (pid_t)lock->svid; in nlm4_decode_lock()
138 fl->fl_flags = FL_POSIX; in nlm4_decode_lock()
139 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock()
144 fl->fl_start = s64_to_loff_t(start); in nlm4_decode_lock()
147 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock()
149 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock()
159 struct file_lock *fl = &lock->fl; in nlm4_encode_lock() local
167 if (fl->fl_start > NLM4_OFFSET_MAX in nlm4_encode_lock()
168 || (fl->fl_end > NLM4_OFFSET_MAX && fl->fl_end != OFFSET_MAX)) in nlm4_encode_lock()
173 start = loff_t_to_s64(fl->fl_start); in nlm4_encode_lock()
174 if (fl->fl_end == OFFSET_MAX) in nlm4_encode_lock()
177 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_encode_lock()
199 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres() local
201 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
208 start = loff_t_to_s64(fl->fl_start); in nlm4_encode_testres()
209 if (fl->fl_end == OFFSET_MAX) in nlm4_encode_testres()
212 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_encode_testres()
217 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
218 (long long)fl->fl_start, (long long)fl->fl_end); in nlm4_encode_testres()
241 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
266 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
286 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
296 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
306 locks_init_lock(&lock->fl); in nlm4svc_decode_shareargs()
308 lock->fl.fl_pid = (pid_t)lock->svid; in nlm4svc_decode_shareargs()
402 *p++ = (lock->fl.fl_type == F_WRLCK)? xdr_one : xdr_zero; in nlm4clt_encode_testargs()
416 struct file_lock *fl = &resp->lock.fl; in nlm4clt_decode_testres() local
422 locks_init_lock(fl); in nlm4clt_decode_testres()
425 fl->fl_pid = (pid_t)resp->lock.svid; in nlm4clt_decode_testres()
429 fl->fl_flags = FL_POSIX; in nlm4clt_decode_testres()
430 fl->fl_type = excl? F_WRLCK : F_RDLCK; in nlm4clt_decode_testres()
435 fl->fl_start = s64_to_loff_t(start); in nlm4clt_decode_testres()
437 fl->fl_end = OFFSET_MAX; in nlm4clt_decode_testres()
439 fl->fl_end = s64_to_loff_t(end); in nlm4clt_decode_testres()
453 *p++ = (lock->fl.fl_type == F_WRLCK)? xdr_one : xdr_zero; in nlm4clt_encode_lockargs()
470 *p++ = (lock->fl.fl_type == F_WRLCK)? xdr_one : xdr_zero; in nlm4clt_encode_cancargs()