/linux-6.6.21/tools/testing/selftests/filelock/ |
D | ofdlocks.c | 50 fl.l_len = 3; in main() 62 fl.l_len = 1; in main() 73 fl.l_len = 1; in main() 88 fl.l_len = 1; in main() 98 fl.l_type, fl.l_pid, fl.l_len); in main() 107 fl2.l_len = 0; in main() 117 fl.l_type, fl.l_pid, fl.l_len); in main() 124 fl.l_len = 0; in main()
|
/linux-6.6.21/fs/lockd/ |
D | clntxdr.c | 62 u32 *l_offset, u32 *l_len) in nlm_compute_offsets() argument 68 *l_len = 0; in nlm_compute_offsets() 70 *l_len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in nlm_compute_offsets() 238 u32 l_offset, l_len; in encode_nlm_holder() local 246 nlm_compute_offsets(lock, &l_offset, &l_len); in encode_nlm_holder() 248 *p = cpu_to_be32(l_len); in encode_nlm_holder() 255 u32 exclusive, l_offset, l_len; in decode_nlm_holder() local 281 l_len = be32_to_cpup(p); in decode_nlm_holder() 282 end = l_offset + l_len - 1; in decode_nlm_holder() 285 if (l_len == 0 || end < 0) in decode_nlm_holder() [all …]
|
D | clnt4xdr.c | 66 u64 *l_offset, u64 *l_len) in nlm4_compute_offsets() argument 72 *l_len = 0; in nlm4_compute_offsets() 74 *l_len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in nlm4_compute_offsets() 243 u64 l_offset, l_len; in encode_nlm4_holder() local 251 nlm4_compute_offsets(lock, &l_offset, &l_len); in encode_nlm4_holder() 253 xdr_encode_hyper(p, l_len); in encode_nlm4_holder() 260 u64 l_offset, l_len; in decode_nlm4_holder() local 286 xdr_decode_hyper(p, &l_len); in decode_nlm4_holder() 287 nlm4svc_set_file_lock_range(fl, l_offset, l_len); in decode_nlm4_holder() 321 u64 l_offset, l_len; in encode_nlm4_lock() local [all …]
|
/linux-6.6.21/include/linux/ |
D | falloc.h | 16 __s64 l_len; /* len == 0 means until end of file */ member 42 __s64 l_len __attribute__((packed)); member
|
D | compat.h | 270 compat_off_t l_len; member 284 compat_loff_t l_len; member
|
/linux-6.6.21/include/uapi/asm-generic/ |
D | fcntl.h | 199 __kernel_off_t l_len; member 213 __kernel_loff_t l_len; member
|
/linux-6.6.21/tools/include/uapi/asm-generic/ |
D | fcntl.h | 199 __kernel_off_t l_len; member 213 __kernel_loff_t l_len; member
|
/linux-6.6.21/arch/arm/kernel/ |
D | sys_oabi-compat.c | 196 loff_t l_len; member 211 kernel->l_len = user.l_len; in get_oabi_flock() 224 user.l_len = kernel->l_len; in put_oabi_flock()
|
/linux-6.6.21/fs/ |
D | fcntl.c | 521 (dst)->l_len = (src)->l_len; \ 560 BUILD_BUG_ON(sizeof(kfl->l_len) > sizeof(ufl->l_len)); in put_compat_flock64() 598 if (flock->l_len > COMPAT_OFF_T_MAX) in fixup_compat_flock() 599 flock->l_len = COMPAT_OFF_T_MAX; in fixup_compat_flock()
|
D | locks.c | 479 if (l->l_len > 0) { in flock64_to_posix_lock() 480 if (l->l_len - 1 > OFFSET_MAX - fl->fl_start) in flock64_to_posix_lock() 482 fl->fl_end = fl->fl_start + (l->l_len - 1); in flock64_to_posix_lock() 484 } else if (l->l_len < 0) { in flock64_to_posix_lock() 485 if (fl->fl_start + l->l_len < 0) in flock64_to_posix_lock() 488 fl->fl_start += l->l_len; in flock64_to_posix_lock() 512 .l_len = l->l_len, in flock_to_posix_lock() 2187 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock() 2199 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock64()
|
D | ioctl.c | 292 sr.l_len); in ioctl_preallocate() 320 return vfs_fallocate(file, mode | FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in compat_ioctl_preallocate()
|
/linux-6.6.21/fs/ocfs2/ |
D | ocfs2_ioctl.h | 24 __s64 l_len; /* len == 0 means until end of file */ member
|
D | file.c | 1972 llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len; in __ocfs2_change_file_space() 1981 size = sr->l_start + sr->l_len; in __ocfs2_change_file_space() 1985 if (sr->l_len <= 0) { in __ocfs2_change_file_space() 2008 sr->l_len); in __ocfs2_change_file_space() 2013 sr->l_len); in __ocfs2_change_file_space() 2120 sr.l_len = (s64)len; in ocfs2_fallocate()
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_fs.h | 103 __s64 l_len; /* len == 0 means until end of file */ member
|
/linux-6.6.21/arch/um/os-Linux/ |
D | file.c | 583 .l_len = 0 } ); in os_lock_file()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_trace.h | 2626 __field(xfs_filblks_t, l_len) 2637 __entry->l_len = len; 2649 __entry->l_len,
|