| /linux/fs/ |
| H A D | locks.c | 422 new->fl_start = fl->fl_start; in locks_copy_conflock() 515 fl->fl_start = 0; in flock64_to_posix_lock() 518 fl->fl_start = filp->f_pos; in flock64_to_posix_lock() 521 fl->fl_start = i_size_read(file_inode(filp)); in flock64_to_posix_lock() 526 if (l->l_start > OFFSET_MAX - fl->fl_start) in flock64_to_posix_lock() 528 fl->fl_start += l->l_start; in flock64_to_posix_lock() 529 if (fl->fl_start < 0) in flock64_to_posix_lock() 535 if (l->l_len - 1 > OFFSET_MAX - fl->fl_start) in flock64_to_posix_lock() 537 fl->fl_end = fl->fl_start + (l->l_len - 1); in flock64_to_posix_lock() 540 if (fl->fl_start + l->l_len < 0) in flock64_to_posix_lock() [all …]
|
| /linux/fs/lockd/ |
| H A D | svclock.c | 153 (long long)lock->fl.fl_start, in nlmsvc_lookup_block() 161 (long long)fl->fl_start, in nlmsvc_lookup_block() 494 (long long)lock->fl.fl_start, in nlmsvc_lock() 624 (long long)lock->fl.fl_start, in nlmsvc_testlock() 639 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock() 654 conflock->fl.c.flc_type, (long long)conflock->fl.fl_start, in nlmsvc_testlock() 683 (long long)lock->fl.fl_start, in nlmsvc_unlock() 723 (long long)lock->fl.fl_start, in nlmsvc_cancel_blocked() 857 loff_t fl_start, fl_end; in nlmsvc_grant_blocked() local 879 fl_start = lock->fl.fl_start; in nlmsvc_grant_blocked() [all …]
|
| 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 | 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 | 59 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() 412 cephlock->start = cpu_to_le64(lock->fl_start); in lock_to_ceph_filelock() 413 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 | 77 __field(loff_t, fl_start) 91 __entry->fl_start = fl ? fl->fl_start : 0; 101 __entry->fl_start, __entry->fl_end, __entry->ret)
|
| H A D | afs.h | 1384 __entry->from = fl->fl_start; 1385 __entry->len = fl->fl_end - fl->fl_start + 1;
|
| /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 | 270 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 292 if (flock->fl_start > li->offset || in smb2_unlock_range() 293 (flock->fl_start + length) < in smb2_unlock_range()
|
| H A D | file.c | 1672 flock->fl_start = conf_lock->offset; in cifs_lock_test() 1959 lck->offset = flock->fl_start; in cifs_push_posix_locks() 2091 flock->fl_start, length, flock, in cifs_getlk() 2097 rc = cifs_lock_test(cfile, flock->fl_start, length, type, flock); in cifs_getlk() 2102 rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, type, in cifs_getlk() 2105 rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, in cifs_getlk() 2121 rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, in cifs_getlk() 2125 rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, in cifs_getlk() 2221 if (flock->fl_start > li->offset || in cifs_unlock_range() 2222 (flock->fl_start + length) < in cifs_unlock_range() [all …]
|
| H A D | cifsglob.h | 2215 return (u64)fl->fl_end - fl->fl_start + 1; in cifs_flock_len()
|
| /linux/include/linux/lockd/ |
| H A D | lockd.h | 388 && 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 | 677 start = (__s32)fl->fl_start; in nfs_lock_check_bounds() 678 if ((loff_t)start != fl->fl_start) in nfs_lock_check_bounds()
|
| H A D | file.c | 901 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
|
| H A D | write.c | 1236 return fl->fl_start == 0 && fl->fl_end == OFFSET_MAX && in is_whole_file_wrlock()
|
| /linux/include/linux/ |
| H A D | filelock.h | 115 loff_t fl_start; member
|
| /linux/fs/smb/server/ |
| H A D | smb2pdu.c | 7343 lock->start = flock->fl_start; in smb2_lock_init() 7435 flock->fl_start = OFFSET_MAX; in smb2_lock() 7437 flock->fl_start = lock_start; in smb2_lock() 7440 if (lock_length > OFFSET_MAX - flock->fl_start) in smb2_lock() 7441 lock_length = OFFSET_MAX - flock->fl_start; in smb2_lock() 7443 flock->fl_end = flock->fl_start + lock_length; in smb2_lock() 7445 if (flock->fl_end < flock->fl_start) { in smb2_lock() 7448 flock->fl_end, flock->fl_start); in smb2_lock() 7456 if (cmp_lock->fl->fl_start <= flock->fl_start && in smb2_lock() 7696 rlock->fl_start = smb_lock->start; in smb2_lock()
|
| H A D | vfs.c | 312 if (flock->fl_end >= start && end >= flock->fl_start) { in check_lock_range()
|
| /linux/fs/nfsd/ |
| H A D | nfs4state.c | 7940 if (lock->fl_start < 0) in nfs4_transform_lock_offset() 7941 lock->fl_start = OFFSET_MAX; in nfs4_transform_lock_offset() 8041 deny->ld_start = fl->fl_start; in nfs4_set_lock_denied() 8044 deny->ld_length = fl->fl_end - fl->fl_start + 1; in nfs4_set_lock_denied() 8430 file_lock->fl_start = lock->lk_offset; in nfsd4_lock() 8611 file_lock->fl_start = lockt->lt_offset; in nfsd4_lockt() 8687 file_lock->fl_start = locku->lu_offset; in nfsd4_locku()
|
| /linux/fs/fuse/ |
| H A D | file.c | 2442 fl->fl_start = ffl->start; in convert_fuse_file_lock() 2472 inarg->lk.start = fl->fl_start; in fuse_lk_fill()
|