/fs/ |
D | remap_range.c | 31 struct file *file_out, loff_t pos_out, in generic_remap_checks() argument 43 if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_out, bs)) in generic_remap_checks() 47 if (pos_in + count < pos_in || pos_out + count < pos_out) in generic_remap_checks() 56 pos_out >= size_out || pos_out + count > size_out)) in generic_remap_checks() 64 ret = generic_write_check_limits(file_out, pos_out, &count); in generic_remap_checks() 76 (!(remap_flags & REMAP_FILE_DEDUP) || pos_out + count == size_out)) { in generic_remap_checks() 86 pos_out + bcount > pos_in && in generic_remap_checks() 87 pos_out < pos_in + bcount) in generic_remap_checks() 126 loff_t pos_out, in generic_remap_check_len() argument 136 if (pos_out + *len < i_size_read(inode_out)) in generic_remap_check_len() [all …]
|
D | read_write.c | 1388 struct file *file_out, loff_t pos_out, in generic_copy_file_range() argument 1393 return do_splice_direct(file_in, &pos_in, file_out, &pos_out, in generic_copy_file_range() 1406 struct file *file_out, loff_t pos_out, in generic_copy_file_checks() argument 1447 if (pos_in + count < pos_in || pos_out + count < pos_out) in generic_copy_file_checks() 1457 ret = generic_write_check_limits(file_out, pos_out, &count); in generic_copy_file_checks() 1463 pos_out + count > pos_in && in generic_copy_file_checks() 1464 pos_out < pos_in + count) in generic_copy_file_checks() 1477 struct file *file_out, loff_t pos_out, in vfs_copy_file_range() argument 1486 ret = generic_copy_file_checks(file_in, pos_in, file_out, pos_out, &len, in vfs_copy_file_range() 1495 ret = rw_verify_area(WRITE, file_out, &pos_out, len); in vfs_copy_file_range() [all …]
|
D | dax.c | 1953 struct file *file_out, loff_t pos_out, in dax_remap_file_range_prep() argument 1958 pos_out, len, remap_flags, ops); in dax_remap_file_range_prep()
|
/fs/xfs/ |
D | xfs_reflink.h | 39 struct file *file_out, loff_t pos_out, loff_t len, 48 struct file *file_out, loff_t pos_out, loff_t *len, 51 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len,
|
D | xfs_reflink.c | 1353 loff_t pos_out, in xfs_reflink_remap_blocks() argument 1360 xfs_fileoff_t destoff = XFS_B_TO_FSBT(mp, pos_out); in xfs_reflink_remap_blocks() 1363 xfs_off_t new_isize = pos_out + remap_len; in xfs_reflink_remap_blocks() 1476 loff_t pos_out, in xfs_reflink_remap_prep() argument 1503 pos_out, len, remap_flags); in xfs_reflink_remap_prep() 1506 pos_out, len, remap_flags, &xfs_read_iomap_ops); in xfs_reflink_remap_prep() 1519 ret = xfs_reflink_zero_posteof(dest, pos_out); in xfs_reflink_remap_prep() 1533 if (pos_out > XFS_ISIZE(dest)) { in xfs_reflink_remap_prep() 1534 loff_t flen = *len + (pos_out - XFS_ISIZE(dest)); in xfs_reflink_remap_prep() 1537 ret = xfs_flush_unmap_range(dest, pos_out, *len); in xfs_reflink_remap_prep()
|
D | xfs_file.c | 1106 loff_t pos_out, in xfs_file_remap_range() argument 1129 ret = xfs_reflink_remap_prep(file_in, pos_in, file_out, pos_out, in xfs_file_remap_range() 1134 trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); in xfs_file_remap_range() 1136 ret = xfs_reflink_remap_blocks(src, pos_in, dest, pos_out, len, in xfs_file_remap_range() 1149 pos_out == 0 && len >= i_size_read(inode_out) && in xfs_file_remap_range() 1153 ret = xfs_reflink_update_dest(dest, pos_out + len, cowextsize, in xfs_file_remap_range()
|
/fs/overlayfs/ |
D | file.c | 558 struct file *file_out, loff_t pos_out, in ovl_copyfile() argument 589 real_out.file, pos_out, len, flags); in ovl_copyfile() 594 real_out.file, pos_out, len, flags); in ovl_copyfile() 599 real_out.file, pos_out, len, in ovl_copyfile() 618 struct file *file_out, loff_t pos_out, in ovl_copy_file_range() argument 621 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, flags, in ovl_copy_file_range() 626 struct file *file_out, loff_t pos_out, in ovl_remap_file_range() argument 648 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, in ovl_remap_file_range()
|
/fs/nfs/ |
D | nfs4file.c | 140 struct file *file_out, loff_t pos_out, in __nfs4_copy_file_range() argument 183 ret = nfs42_proc_copy(file_in, pos_in, file_out, pos_out, count, in __nfs4_copy_file_range() 194 struct file *file_out, loff_t pos_out, in nfs4_copy_file_range() argument 199 ret = __nfs4_copy_file_range(file_in, pos_in, file_out, pos_out, count, in nfs4_copy_file_range() 203 pos_out, count, flags); in nfs4_copy_file_range()
|
/fs/btrfs/ |
D | reflink.h | 9 struct file *file_out, loff_t pos_out,
|
D | reflink.c | 790 struct file *file_out, loff_t pos_out, in btrfs_remap_file_range_prep() argument 858 ret = btrfs_wait_ordered_range(inode_out, ALIGN_DOWN(pos_out, bs), in btrfs_remap_file_range_prep() 863 return generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, in btrfs_remap_file_range_prep()
|
/fs/hostfs/ |
D | hostfs_user.c | 107 char *read_dir(void *stream, unsigned long long *pos_out, in read_dir() argument 120 *pos_out = ent->d_off; in read_dir()
|
D | hostfs.h | 75 extern char *read_dir(void *stream, unsigned long long *pos_out,
|
/fs/f2fs/ |
D | file.c | 2795 struct file *file_out, loff_t pos_out, size_t len) in f2fs_move_file_range() argument 2817 if (pos_out < 0 || pos_in < 0) in f2fs_move_file_range() 2821 if (pos_in == pos_out) in f2fs_move_file_range() 2823 if (pos_out > pos_in && pos_out < pos_in + len) in f2fs_move_file_range() 2852 if (pos_out + olen > dst->i_size) in f2fs_move_file_range() 2853 dst_max_i_size = pos_out + olen; in f2fs_move_file_range() 2858 !IS_ALIGNED(pos_out, F2FS_BLKSIZE)) in f2fs_move_file_range() 2876 pos_out, pos_out + len); in f2fs_move_file_range() 2891 pos_out >> F2FS_BLKSIZE_BITS, in f2fs_move_file_range() 2938 range->pos_out, range->len); in __f2fs_ioc_move_range() [all …]
|
/fs/ocfs2/ |
D | refcounttree.h | 113 loff_t pos_out,
|
D | file.c | 2641 struct file *file_out, loff_t pos_out, in ocfs2_remap_file_range() argument 2670 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, in ocfs2_remap_file_range() 2683 round_down(pos_out, PAGE_SIZE), in ocfs2_remap_file_range() 2684 round_up(pos_out + len, PAGE_SIZE) - 1); in ocfs2_remap_file_range() 2687 inode_out, out_bh, pos_out, len); in ocfs2_remap_file_range() 2704 ret = ocfs2_reflink_update_dest(inode_out, out_bh, pos_out + len); in ocfs2_remap_file_range()
|
D | refcounttree.c | 4477 loff_t pos_out, in ocfs2_reflink_remap_extent() argument 4499 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out); in ocfs2_reflink_remap_extent() 4591 loff_t pos_out, in ocfs2_reflink_remap_blocks() argument 4609 if (pos_in == pos_out && pos_in == 0 && len == i_size_read(s_inode) && in ocfs2_reflink_remap_blocks() 4669 pos_out, len, &dealloc); in ocfs2_reflink_remap_blocks()
|
/fs/fuse/ |
D | file.c | 3195 struct file *file_out, loff_t pos_out, in __fuse_copy_file_range() argument 3211 .off_out = pos_out, in __fuse_copy_file_range() 3220 ((pos_out + len) > inode_out->i_size); in __fuse_copy_file_range() 3229 file_in, pos_in, file_out, pos_out, len, flags); in __fuse_copy_file_range() 3270 err = fuse_writeback_range(inode_out, pos_out, pos_out + len - 1); in __fuse_copy_file_range() 3294 ALIGN_DOWN(pos_out, PAGE_SIZE), in __fuse_copy_file_range() 3295 ALIGN(pos_out + outarg.size, PAGE_SIZE) - 1); in __fuse_copy_file_range() 3298 fuse_write_update_attr(inode_out, pos_out + outarg.size, outarg.size); in __fuse_copy_file_range()
|
D | fuse_i.h | 1593 struct file *file_out, loff_t pos_out, 1597 struct file *file_out, loff_t pos_out, 1601 struct file *file_out, loff_t pos_out,
|
D | backing.c | 439 loff_t pos_out, size_t len, unsigned int flags) in fuse_copy_file_range_initialize() argument 450 .off_out = pos_out, in fuse_copy_file_range_initialize() 470 struct file *file_out, loff_t pos_out, size_t len, in fuse_copy_file_range_backing() argument 484 return generic_copy_file_range(file_in, pos_in, file_out, pos_out, len, in fuse_copy_file_range_backing() 489 struct file *file_out, loff_t pos_out, size_t len, in fuse_copy_file_range_finalize() argument
|