Lines Matching refs:fl
109 struct file_lock *fl = &lock->fl; in nlm4_decode_lock() local
120 locks_init_lock(fl); in nlm4_decode_lock()
121 fl->fl_flags = FL_POSIX; in nlm4_decode_lock()
122 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock()
127 fl->fl_start = s64_to_loff_t(start); in nlm4_decode_lock()
130 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock()
132 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock()
150 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres() local
152 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one; in nlm4_encode_testres()
159 start = loff_t_to_s64(fl->fl_start); in nlm4_encode_testres()
160 if (fl->fl_end == OFFSET_MAX) in nlm4_encode_testres()
163 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_encode_testres()
168 resp->status, (int)resp->lock.svid, fl->fl_type, in nlm4_encode_testres()
169 (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()
221 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
242 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
254 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
265 locks_init_lock(&lock->fl); in nlm4svc_decode_shareargs()