Home
last modified time | relevance | path

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

12

/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()
1156 request->fl_start != 0 || request->fl_end != OFFSET_MAX)) { in posix_lock_inode()
1220 if (fl->fl_end < request->fl_start - 1) in posix_lock_inode()
[all …]
/fs/lockd/
Dsvclock.c154 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block()
160 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block()
484 (long long)lock->fl.fl_end, in nlmsvc_lock()
598 (long long)lock->fl.fl_end); in nlmsvc_testlock()
626 (long long)lock->fl.fl_end); in nlmsvc_testlock()
633 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock()
662 (long long)lock->fl.fl_end); in nlmsvc_unlock()
697 (long long)lock->fl.fl_end); in nlmsvc_cancel_blocked()
826 loff_t fl_start, fl_end; in nlmsvc_grant_blocked() local
849 fl_end = lock->fl.fl_end; in nlmsvc_grant_blocked()
[all …]
Dxdr4.c42 fl->fl_end = OFFSET_MAX; in nlm4svc_set_file_lock_range()
44 fl->fl_end = end; in nlm4svc_set_file_lock_range()
112 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder()
115 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder()
Dxdr.c96 fl->fl_end = OFFSET_MAX; in svcxdr_decode_lock()
98 fl->fl_end = s32_to_loff_t(end); in svcxdr_decode_lock()
117 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder()
120 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder()
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()
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()
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()
Dsvcsubs.c186 lock.fl_end = OFFSET_MAX; in nlm_unlock_files()
Dsvc4proc.c58 lock->fl.fl_end = lock->lock_len ? in nlm4svc_retrieve_args()
/fs/ceph/
Dlocks.c90 if (LLONG_MAX == fl->fl_end) in ceph_lock_message()
93 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message()
127 fl->fl_end = length -1; in ceph_lock_message()
129 fl->fl_end = 0; in ceph_lock_message()
381 cephlock->length = cpu_to_le64(lock->fl_end - lock->fl_start + 1); in lock_to_ceph_filelock()
/fs/9p/
Dvfs_file.c166 if (fl->fl_end == OFFSET_MAX) in v9fs_file_do_lock()
169 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock()
259 if (fl->fl_end == OFFSET_MAX) in v9fs_file_getlock()
262 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock()
284 fl->fl_end = OFFSET_MAX; in v9fs_file_getlock()
286 fl->fl_end = glock.start + glock.length - 1; in v9fs_file_getlock()
/fs/dlm/
Dplock.c128 op->info.end = fl->fl_end; in dlm_posix_lock()
287 op->info.end = fl->fl_end; in dlm_posix_unlock()
348 op->info.end = fl->fl_end; in dlm_posix_get()
381 fl->fl_end = op->info.end; in dlm_posix_get()
/fs/afs/
Dflock.c467 fl->fl_start, fl->fl_end, fl->fl_type, mode); in afs_do_setlk()
473 partial = (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX); in afs_do_setlk()
750 fl->fl_end = OFFSET_MAX; in afs_do_getlk()
773 (long long) fl->fl_start, (long long) fl->fl_end); in afs_lock()
/fs/nfs/
Dproc.c677 if (fl->fl_end != OFFSET_MAX) { in nfs_lock_check_bounds()
678 end = (__s32)fl->fl_end; in nfs_lock_check_bounds()
679 if ((loff_t)end != fl->fl_end) in nfs_lock_check_bounds()
Dfile.c804 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
Dnfs4trace.h1014 __entry->end = request->fl_end;
1086 __entry->end = request->fl_end;
Dnfs4xdr.c1315 if (fl->fl_end == OFFSET_MAX) in nfs4_lock_length()
1317 return fl->fl_end - fl->fl_start + 1; in nfs4_lock_length()
4994 fl->fl_end = fl->fl_start + (loff_t)length - 1; in decode_lock_denied()
4996 fl->fl_end = OFFSET_MAX; in decode_lock_denied()
/fs/cifs/
Dsmb2file.c113 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range()
Dfile.c1121 flock->fl_end = conf_lock->offset + conf_lock->length - 1; in cifs_lock_test()
1392 length = 1 + flock->fl_end - flock->fl_start; in cifs_push_posix_locks()
1508 __u64 length = 1 + flock->fl_end - flock->fl_start; in cifs_getlk()
1606 __u64 length = 1 + flock->fl_end - flock->fl_start; in cifs_unlock_range()
1710 __u64 length = 1 + flock->fl_end - flock->fl_start; in cifs_setlk()
1863 flock->fl_start, flock->fl_end); in cifs_lock()
/fs/nfsd/
Dnfs4state.c5069 fl->fl_end = OFFSET_MAX; in nfs4_alloc_init_lease()
6532 if (lock->fl_end < 0) in nfs4_transform_lock_offset()
6533 lock->fl_end = OFFSET_MAX; in nfs4_transform_lock_offset()
6607 if (fl->fl_end != NFS4_MAX_UINT64) in nfs4_set_lock_denied()
6608 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied()
6995 file_lock->fl_end = last_byte_offset(lock->lk_offset, lock->lk_length); in nfsd4_lock()
7160 file_lock->fl_end = last_byte_offset(lockt->lt_offset, lockt->lt_length); in nfsd4_lockt()
7224 file_lock->fl_end = last_byte_offset(locku->lu_offset, in nfsd4_locku()
Dnfs4layouts.c197 fl->fl_end = OFFSET_MAX; in nfsd4_layout_setlease()
/fs/ksmbd/
Dsmb2pdu.c6829 lock->end = flock->fl_end; in smb2_lock_init()
6928 flock->fl_end = flock->fl_start + lock_length; in smb2_lock()
6930 if (flock->fl_end < flock->fl_start) { in smb2_lock()
6933 flock->fl_end, flock->fl_start); in smb2_lock()
6942 cmp_lock->fl->fl_end >= flock->fl_end) { in smb2_lock()
7182 rlock->fl_end = smb_lock->end; in smb2_lock()
Dvfs.c338 if (flock->fl_end >= start && end >= flock->fl_start) { in check_lock_range()
/fs/fuse/
Dfile.c2570 fl->fl_end = ffl->end; in convert_fuse_file_lock()
2600 inarg->lk.end = fl->fl_end; in fuse_lk_fill()

12