Lines Matching defs:fl
109 struct file_lock *fl = &lock->fl;
120 locks_init_lock(fl);
121 fl->fl_flags = FL_POSIX;
122 fl->fl_type = F_RDLCK; /* as good as anything else */
127 fl->fl_start = s64_to_loff_t(start);
130 fl->fl_end = OFFSET_MAX;
132 fl->fl_end = s64_to_loff_t(end);
150 struct file_lock *fl = &resp->lock.fl;
152 *p++ = (fl->fl_type == F_RDLCK)? xdr_zero : xdr_one;
159 start = loff_t_to_s64(fl->fl_start);
160 if (fl->fl_end == OFFSET_MAX)
163 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1);
168 resp->status, (int)resp->lock.svid, fl->fl_type,
169 (long long)fl->fl_start, (long long)fl->fl_end);
193 argp->lock.fl.fl_type = F_WRLCK;
221 argp->lock.fl.fl_type = F_WRLCK;
242 argp->lock.fl.fl_type = F_WRLCK;
254 argp->lock.fl.fl_type = F_UNLCK;
265 locks_init_lock(&lock->fl);