/linux/fs/ |
H A D | locks.c | 403 new->fl_start = fl->fl_start; in locks_copy_conflock() 496 fl->fl_start = 0; in flock64_to_posix_lock() 499 fl->fl_start = filp->f_pos; in flock64_to_posix_lock() 502 fl->fl_start = i_size_read(file_inode(filp)); in flock64_to_posix_lock() 507 if (l->l_start > OFFSET_MAX - fl->fl_start) in flock64_to_posix_lock() 509 fl->fl_start += l->l_start; in flock64_to_posix_lock() 510 if (fl->fl_start < 0) in flock64_to_posix_lock() 516 if (l->l_len - 1 > OFFSET_MAX - fl->fl_start) in flock64_to_posix_lock() 518 fl->fl_end = fl->fl_start + (l->l_len - 1); in flock64_to_posix_lock() 521 if (fl->fl_start + l->l_len < 0) in flock64_to_posix_lock() [all …]
|
/linux/fs/lockd/ |
H A D | svclock.c | 154 (long long)lock->fl.fl_start, in nlmsvc_lookup_block() 162 (long long)fl->fl_start, in nlmsvc_lookup_block() 495 (long long)lock->fl.fl_start, in nlmsvc_lock() 622 (long long)lock->fl.fl_start, in nlmsvc_testlock() 647 lock->fl.c.flc_type, (long long)lock->fl.fl_start, in nlmsvc_testlock() 654 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock() 679 (long long)lock->fl.fl_start, in nlmsvc_unlock() 716 (long long)lock->fl.fl_start, in nlmsvc_cancel_blocked() 847 loff_t fl_start, fl_end; in nlmsvc_grant_blocked() local 869 fl_start = lock->fl.fl_start; in nlmsvc_grant_blocked() [all …]
|
H A D | xdr4.c | 40 fl->fl_start = off; in nlm4svc_set_file_lock_range() 111 start = loff_t_to_s64(fl->fl_start); in svcxdr_encode_holder() 115 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder()
|
H A D | xdr.c | 94 fl->fl_start = s32_to_loff_t(start); in svcxdr_decode_lock() 116 start = loff_t_to_s32(fl->fl_start); in svcxdr_encode_holder() 120 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder()
|
H A D | clntlock.c | 176 if (fl_blocked->fl_start != fl->fl_start) in nlmclnt_grant()
|
H A D | clntxdr.c | 66 *l_offset = loff_t_to_s32(fl->fl_start); in nlm_compute_offsets() 70 *l_len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_compute_offsets() 284 fl->fl_start = (loff_t)l_offset; in decode_nlm_holder()
|
H A D | clntproc.c | 144 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs() 449 fl->fl_start = req->a_res.lock.fl.fl_start; in nlmclnt_test()
|
H A D | clnt4xdr.c | 70 *l_offset = loff_t_to_s64(fl->fl_start); in nlm4_compute_offsets() 74 *l_len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_compute_offsets()
|
H A D | svcsubs.c | 185 lock.fl_start = 0; in nlm_unlock_files()
|
H A D | svc4proc.c | 58 lock->fl.fl_start = (loff_t)lock->lock_start; in nlm4svc_retrieve_args()
|
/linux/fs/ceph/ |
H A D | locks.c | 111 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message() 119 fl->fl_start, length, wait, fl->c.flc_type); in ceph_lock_message() 125 req->r_args.filelock_change.start = cpu_to_le64(fl->fl_start); in ceph_lock_message() 142 fl->fl_start = le64_to_cpu(req->r_reply_info.filelock_reply->start); in ceph_lock_message() 155 fl->fl_start, length, wait, fl->c.flc_type, err); in ceph_lock_message() 409 cephlock->start = cpu_to_le64(lock->fl_start); in lock_to_ceph_filelock() 410 cephlock->length = cpu_to_le64(lock->fl_end - lock->fl_start + 1); in lock_to_ceph_filelock()
|
/linux/include/trace/events/ |
H A D | filelock.h | 76 __field(loff_t, fl_start) 90 __entry->fl_start = fl ? fl->fl_start : 0; 100 __entry->fl_start, __entry->fl_end, __entry->ret)
|
H A D | afs.h | 1194 __entry->from = fl->fl_start; 1195 __entry->len = fl->fl_end - fl->fl_start + 1;
|
/linux/fs/9p/ |
H A D | vfs_file.c | 149 flock.start = fl->fl_start; in v9fs_file_do_lock() 153 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock() 243 glock.start = fl->fl_start; in v9fs_file_getlock() 247 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock() 267 fl->fl_start = glock.start; in v9fs_file_getlock()
|
/linux/fs/dlm/ |
H A D | plock.c | 146 op->info.start = fl->fl_start; in dlm_posix_lock() 323 op->info.start = fl->fl_start; in dlm_posix_unlock() 383 info.start = fl->fl_start; in dlm_posix_cancel() 444 op->info.start = fl->fl_start; in dlm_posix_get() 468 fl->fl_start = op->info.start; in dlm_posix_get()
|
/linux/fs/smb/client/ |
H A D | smb2file.c | 198 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 220 if (flock->fl_start > li->offset || in smb2_unlock_range() 221 (flock->fl_start + length) < in smb2_unlock_range()
|
/linux/include/linux/lockd/ |
H A D | lockd.h | 381 && fl1->fl_start == fl2->fl_start in nlm_compare_locks()
|
/linux/fs/afs/ |
H A D | flock.c | 466 fl->fl_start, fl->fl_end, fl->c.flc_type, mode); in afs_do_setlk() 472 partial = (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX); in afs_do_setlk() 749 fl->fl_start = 0; in afs_do_getlk() 773 (long long) fl->fl_start, (long long) fl->fl_end); in afs_lock()
|
/linux/fs/nfs/ |
H A D | proc.c | 672 start = (__s32)fl->fl_start; in nfs_lock_check_bounds() 673 if ((loff_t)start != fl->fl_start) in nfs_lock_check_bounds()
|
H A D | file.c | 838 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
|
H A D | nfs4xdr.c | 1317 return fl->fl_end - fl->fl_start + 1; in nfs4_lock_length() 1344 p = xdr_encode_hyper(p, args->fl->fl_start); in encode_lock() 1366 p = xdr_encode_hyper(p, args->fl->fl_start); in encode_lockt() 1380 p = xdr_encode_hyper(p, args->fl->fl_start); in encode_locku() 5093 fl->fl_start = (loff_t)offset; in decode_lock_denied() 5094 fl->fl_end = fl->fl_start + (loff_t)length - 1; in decode_lock_denied()
|
H A D | nfs4trace.h | 733 __entry->start = request->fl_start; 805 __entry->start = request->fl_start;
|
/linux/include/linux/ |
H A D | filelock.h | 114 loff_t fl_start; member
|
/linux/fs/smb/server/ |
H A D | smb2pdu.c | 7154 lock->start = flock->fl_start; in smb2_lock_init() 7246 flock->fl_start = OFFSET_MAX; in smb2_lock() 7248 flock->fl_start = lock_start; in smb2_lock() 7251 if (lock_length > OFFSET_MAX - flock->fl_start) in smb2_lock() 7252 lock_length = OFFSET_MAX - flock->fl_start; in smb2_lock() 7254 flock->fl_end = flock->fl_start + lock_length; in smb2_lock() 7256 if (flock->fl_end < flock->fl_start) { in smb2_lock() 7259 flock->fl_end, flock->fl_start); in smb2_lock() 7267 if (cmp_lock->fl->fl_start <= flock->fl_start && in smb2_lock() 7507 rlock->fl_start = smb_lock->start; in smb2_lock()
|
/linux/fs/nfsd/ |
H A D | nfs4state.c | 7562 if (lock->fl_start < 0) in nfs4_transform_lock_offset() 7563 lock->fl_start = OFFSET_MAX; in nfs4_transform_lock_offset() 7663 deny->ld_start = fl->fl_start; in nfs4_set_lock_denied() 7666 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied() 8063 file_lock->fl_start = lock->lk_offset; in nfsd4_lock() 8244 file_lock->fl_start = lockt->lt_offset; in nfsd4_lockt() 8315 file_lock->fl_start = locku->lu_offset; in nfsd4_locku()
|