Lines Matching refs:fl
67 const struct file_lock *fl = &lock->fl; in nlm4_compute_offsets() local
69 *l_offset = loff_t_to_s64(fl->fl_start); in nlm4_compute_offsets()
70 if (fl->fl_end == OFFSET_MAX) in nlm4_compute_offsets()
73 *l_len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_compute_offsets()
268 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm4_holder()
281 struct file_lock *fl = &lock->fl; in decode_nlm4_holder() local
289 locks_init_lock(fl); in decode_nlm4_holder()
296 fl->fl_pid = (pid_t)lock->svid; in decode_nlm4_holder()
306 fl->fl_flags = FL_POSIX; in decode_nlm4_holder()
307 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm4_holder()
312 fl->fl_start = (loff_t)l_offset; in decode_nlm4_holder()
314 fl->fl_end = OFFSET_MAX; in decode_nlm4_holder()
316 fl->fl_end = (loff_t)end; in decode_nlm4_holder()
389 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_testargs()
411 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_lockargs()
433 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_cancargs()