Searched refs:l_len (Results 1 – 13 of 13) sorted by relevance
/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 287 xdr_decode_hyper(p, &l_len); in decode_nlm4_holder() 288 end = l_offset + l_len - 1; in decode_nlm4_holder() 291 if (l_len == 0 || end < 0) in decode_nlm4_holder() [all …]
|
/fs/ |
D | fcntl.c | 528 (dst)->l_len = (src)->l_len; \ 567 BUILD_BUG_ON(sizeof(kfl->l_len) > sizeof(ufl->l_len)); in put_compat_flock64() 605 if (flock->l_len > COMPAT_OFF_T_MAX) in fixup_compat_flock() 606 flock->l_len = COMPAT_OFF_T_MAX; in fixup_compat_flock()
|
D | locks.c | 542 if (l->l_len > 0) { in flock64_to_posix_lock() 543 if (l->l_len - 1 > OFFSET_MAX - fl->fl_start) in flock64_to_posix_lock() 545 fl->fl_end = fl->fl_start + l->l_len - 1; in flock64_to_posix_lock() 547 } else if (l->l_len < 0) { in flock64_to_posix_lock() 548 if (fl->fl_start + l->l_len < 0) in flock64_to_posix_lock() 551 fl->fl_start += l->l_len; in flock64_to_posix_lock() 575 .l_len = l->l_len, in flock_to_posix_lock() 2298 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock() 2310 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock64()
|
D | compat_ioctl.c | 477 __s64 l_len __attribute__((packed)); member 495 copy_in_user(&p->l_len, &p32->l_len, sizeof(s64)) || in compat_ioctl_preallocate()
|
D | ioctl.c | 491 return vfs_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in ioctl_preallocate()
|
/fs/ocfs2/ |
D | file.c | 1910 llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len; in __ocfs2_change_file_space() 1919 size = sr->l_start + sr->l_len; in __ocfs2_change_file_space() 1923 if (sr->l_len <= 0) { in __ocfs2_change_file_space() 1946 sr->l_len); in __ocfs2_change_file_space() 1951 sr->l_len); in __ocfs2_change_file_space() 2046 sr.l_len = (s64)len; in ocfs2_fallocate()
|
D | ocfs2_ioctl.h | 34 __s64 l_len; /* len == 0 means until end of file */ member
|
/fs/xfs/ |
D | xfs_ioctl.c | 650 if (bf->l_len <= 0) { in xfs_ioc_space() 656 bf->l_len = 0; in xfs_ioc_space() 662 bf->l_start + bf->l_len < 0 || in xfs_ioc_space() 663 bf->l_start + bf->l_len >= inode->i_sb->s_maxbytes) { in xfs_ioc_space() 671 error = xfs_zero_file_space(ip, bf->l_start, bf->l_len); in xfs_ioc_space() 676 error = xfs_alloc_file_space(ip, bf->l_start, bf->l_len, in xfs_ioc_space() 681 error = xfs_free_file_space(ip, bf->l_start, bf->l_len); in xfs_ioc_space()
|
D | xfs_ioctl32.h | 162 __s64 l_len __attribute__((packed)); member
|
D | xfs_ioctl32.c | 38 get_user(bf->l_len, &arg32->l_len) || in xfs_compat_flock64_copyin()
|
D | xfs_trace.h | 2369 __field(xfs_filblks_t, l_len) 2380 __entry->l_len = len; 2392 __entry->l_len,
|
/fs/xfs/libxfs/ |
D | xfs_fs.h | 118 __s64 l_len; /* len == 0 means until end of file */ member
|