Home
last modified time | relevance | path

Searched refs:fl_end (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/fs/
Dlocks.c417 new->fl_end = fl->fl_end; in locks_copy_conflock()
499 fl->fl_end = OFFSET_MAX; in flock_make_lock()
545 fl->fl_end = fl->fl_start + l->l_len - 1; in flock64_to_posix_lock()
550 fl->fl_end = fl->fl_start - 1; in flock64_to_posix_lock()
553 fl->fl_end = OFFSET_MAX; in flock64_to_posix_lock()
626 fl->fl_end = OFFSET_MAX; in lease_init()
653 return ((fl1->fl_end >= fl2->fl_start) && in locks_overlap()
654 (fl2->fl_end >= fl1->fl_start)); in locks_overlap()
1133 request->fl_start != 0 || request->fl_end != OFFSET_MAX)) { in posix_lock_inode()
1197 if (fl->fl_end < request->fl_start - 1) in posix_lock_inode()
[all …]
/Linux-v5.4/fs/lockd/
Dsvclock.c153 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block()
159 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block()
499 (long long)lock->fl.fl_end, in nlmsvc_lock()
606 (long long)lock->fl.fl_end); in nlmsvc_testlock()
633 (long long)lock->fl.fl_end); in nlmsvc_testlock()
640 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock()
669 (long long)lock->fl.fl_end); in nlmsvc_unlock()
698 (long long)lock->fl.fl_end); in nlmsvc_cancel_blocked()
813 loff_t fl_start, fl_end; in nlmsvc_grant_blocked() local
836 fl_end = lock->fl.fl_end; in nlmsvc_grant_blocked()
[all …]
Dxdr4.c130 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock()
132 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock()
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()
169 (long long)fl->fl_start, (long long)fl->fl_end); in nlm4_encode_testres()
Dxdr.c138 fl->fl_end = OFFSET_MAX; in nlm_decode_lock()
140 fl->fl_end = s32_to_loff_t(end); in nlm_decode_lock()
167 if (fl->fl_end == OFFSET_MAX) in nlm_encode_testres()
170 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_encode_testres()
Dclntxdr.c67 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()
286 fl->fl_end = OFFSET_MAX; in decode_nlm_holder()
288 fl->fl_end = (loff_t)end; in decode_nlm_holder()
Dclnt4xdr.c71 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()
292 fl->fl_end = OFFSET_MAX; in decode_nlm4_holder()
294 fl->fl_end = (loff_t)end; in decode_nlm4_holder()
Dclntlock.c181 if (fl_blocked->fl_end != fl->fl_end) in nlmclnt_grant()
Dclntproc.c141 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs()
445 fl->fl_end = req->a_res.lock.fl.fl_end; in nlmclnt_test()
Dsvcsubs.c190 lock.fl_end = OFFSET_MAX; in nlm_traverse_locks()
/Linux-v5.4/include/trace/events/
Dfilelock.h77 __field(loff_t, fl_end)
91 __entry->fl_end = fl ? fl->fl_end : 0;
100 __entry->fl_start, __entry->fl_end, __entry->ret)
Dafs.h1154 __entry->len = fl->fl_end - fl->fl_start + 1;
/Linux-v5.4/fs/9p/
Dvfs_file.c169 if (fl->fl_end == OFFSET_MAX) in v9fs_file_do_lock()
172 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock()
262 if (fl->fl_end == OFFSET_MAX) in v9fs_file_getlock()
265 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock()
287 fl->fl_end = OFFSET_MAX; in v9fs_file_getlock()
289 fl->fl_end = glock.start + glock.length - 1; in v9fs_file_getlock()
/Linux-v5.4/fs/ceph/
Dlocks.c94 if (LLONG_MAX == fl->fl_end) in ceph_lock_message()
97 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message()
131 fl->fl_end = length -1; in ceph_lock_message()
133 fl->fl_end = 0; in ceph_lock_message()
361 cephlock->length = cpu_to_le64(lock->fl_end - lock->fl_start + 1); in lock_to_ceph_filelock()
/Linux-v5.4/fs/dlm/
Dplock.c127 op->info.end = fl->fl_end; in dlm_posix_lock()
277 op->info.end = fl->fl_end; in dlm_posix_unlock()
338 op->info.end = fl->fl_end; in dlm_posix_get()
369 fl->fl_end = op->info.end; in dlm_posix_get()
/Linux-v5.4/include/linux/lockd/
Dlockd.h370 && fl1->fl_end == fl2->fl_end in nlm_compare_locks()
/Linux-v5.4/fs/afs/
Dflock.c478 fl->fl_start, fl->fl_end, fl->fl_type, mode); in afs_do_setlk()
484 partial = (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX); in afs_do_setlk()
761 fl->fl_end = OFFSET_MAX; in afs_do_getlk()
784 (long long) fl->fl_start, (long long) fl->fl_end); in afs_lock()
/Linux-v5.4/fs/nfs/
Dproc.c665 if (fl->fl_end != OFFSET_MAX) { in nfs_lock_check_bounds()
666 end = (__s32)fl->fl_end; in nfs_lock_check_bounds()
667 if ((loff_t)end != fl->fl_end) in nfs_lock_check_bounds()
Dfile.c774 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
Dnfs4trace.h828 __entry->end = request->fl_end;
900 __entry->end = request->fl_end;
Dwrite.c1302 return fl->fl_start == 0 && fl->fl_end == OFFSET_MAX && in is_whole_file_wrlock()
/Linux-v5.4/fs/cifs/
Dsmb2file.c126 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range()
Dfile.c1018 flock->fl_end = conf_lock->offset + conf_lock->length - 1; in cifs_lock_test()
1295 length = 1 + flock->fl_end - flock->fl_start; in cifs_push_posix_locks()
1411 __u64 length = 1 + flock->fl_end - flock->fl_start; in cifs_getlk()
1509 __u64 length = 1 + flock->fl_end - flock->fl_start; in cifs_unlock_range()
1613 __u64 length = 1 + flock->fl_end - flock->fl_start; in cifs_setlk()
1717 flock->fl_start, flock->fl_end); in cifs_lock()
/Linux-v5.4/fs/nfsd/
Dnfs4layouts.c197 fl->fl_end = OFFSET_MAX; in nfsd4_layout_setlease()
Dnfs4state.c4790 fl->fl_end = OFFSET_MAX; in nfs4_alloc_init_lease()
6083 if (lock->fl_end < 0) in nfs4_transform_lock_offset()
6084 lock->fl_end = OFFSET_MAX; in nfs4_transform_lock_offset()
6156 if (fl->fl_end != NFS4_MAX_UINT64) in nfs4_set_lock_denied()
6157 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied()
6537 file_lock->fl_end = last_byte_offset(lock->lk_offset, lock->lk_length); in nfsd4_lock()
6692 file_lock->fl_end = last_byte_offset(lockt->lt_offset, lockt->lt_length); in nfsd4_lockt()
6756 file_lock->fl_end = last_byte_offset(locku->lu_offset, in nfsd4_locku()
/Linux-v5.4/fs/fuse/
Dfile.c2315 fl->fl_end = ffl->end; in convert_fuse_file_lock()
2345 inarg->lk.end = fl->fl_end; in fuse_lk_fill()

12