Lines Matching refs:fl
64 const struct file_lock *fl = &lock->fl; in nlm_compute_offsets() local
66 *l_offset = loff_t_to_s32(fl->fl_start); in nlm_compute_offsets()
67 if (fl->fl_end == OFFSET_MAX) in nlm_compute_offsets()
70 *l_len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_compute_offsets()
241 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm_holder()
254 struct file_lock *fl = &lock->fl; in decode_nlm_holder() local
261 locks_init_lock(fl); in decode_nlm_holder()
268 fl->fl_pid = (pid_t)lock->svid; in decode_nlm_holder()
278 fl->fl_flags = FL_POSIX; in decode_nlm_holder()
279 fl->fl_type = exclusive != 0 ? F_WRLCK : F_RDLCK; in decode_nlm_holder()
284 fl->fl_start = (loff_t)l_offset; in decode_nlm_holder()
286 fl->fl_end = OFFSET_MAX; in decode_nlm_holder()
288 fl->fl_end = (loff_t)end; in decode_nlm_holder()
360 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_testargs()
383 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_lockargs()
406 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm_xdr_enc_cancargs()