Lines Matching refs:fl
68 const struct file_lock *fl = &lock->fl; in nlm4_compute_offsets() local
70 *l_offset = loff_t_to_s64(fl->fl_start); in nlm4_compute_offsets()
71 if (fl->fl_end == OFFSET_MAX) in nlm4_compute_offsets()
74 *l_len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_compute_offsets()
246 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm4_holder()
259 struct file_lock *fl = &lock->fl; in decode_nlm4_holder() local
267 locks_init_lock(fl); in decode_nlm4_holder()
274 fl->fl_pid = (pid_t)lock->svid; in decode_nlm4_holder()
284 fl->fl_flags = FL_POSIX; in decode_nlm4_holder()
285 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder()
290 fl->fl_start = (loff_t)l_offset; in decode_nlm4_holder()
292 fl->fl_end = OFFSET_MAX; in decode_nlm4_holder()
294 fl->fl_end = (loff_t)end; in decode_nlm4_holder()
367 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_testargs()
390 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_lockargs()
413 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_cancargs()