/linux-6.6.21/fs/ |
D | remap_range.c | 31 static int generic_remap_checks(struct file *file_in, loff_t pos_in, in generic_remap_checks() argument 44 if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_out, bs)) in generic_remap_checks() 48 if (pos_in + count < pos_in || pos_out + count < pos_out) in generic_remap_checks() 56 (pos_in >= size_in || pos_in + count > size_in || in generic_remap_checks() 61 if (pos_in >= size_in) in generic_remap_checks() 63 count = min(count, size_in - (uint64_t)pos_in); in generic_remap_checks() 76 if (pos_in + count == size_in && in generic_remap_checks() 78 bcount = ALIGN(size_in, bs) - pos_in; in generic_remap_checks() 87 pos_out + bcount > pos_in && in generic_remap_checks() 88 pos_out < pos_in + bcount) in generic_remap_checks() [all …]
|
D | read_write.c | 1386 ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, in generic_copy_file_range() argument 1392 return do_splice_direct(file_in, &pos_in, file_out, &pos_out, in generic_copy_file_range() 1404 static int generic_copy_file_checks(struct file *file_in, loff_t pos_in, in generic_copy_file_checks() argument 1446 if (pos_in + count < pos_in || pos_out + count < pos_out) in generic_copy_file_checks() 1451 if (pos_in >= size_in) in generic_copy_file_checks() 1454 count = min(count, size_in - (uint64_t)pos_in); in generic_copy_file_checks() 1462 pos_out + count > pos_in && in generic_copy_file_checks() 1463 pos_out < pos_in + count) in generic_copy_file_checks() 1475 ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, in vfs_copy_file_range() argument 1485 ret = generic_copy_file_checks(file_in, pos_in, file_out, pos_out, &len, in vfs_copy_file_range() [all …]
|
D | dax.c | 2059 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in, in dax_remap_file_range_prep() argument 2064 return __generic_remap_file_range_prep(file_in, pos_in, file_out, in dax_remap_file_range_prep()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_reflink.h | 38 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in, 47 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in, 50 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in,
|
D | xfs_reflink.c | 1353 loff_t pos_in, in xfs_reflink_remap_blocks() argument 1361 xfs_fileoff_t srcoff = XFS_B_TO_FSBT(mp, pos_in); in xfs_reflink_remap_blocks() 1476 loff_t pos_in, in xfs_reflink_remap_prep() argument 1504 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, in xfs_reflink_remap_prep() 1507 ret = dax_remap_file_range_prep(file_in, pos_in, file_out, in xfs_reflink_remap_prep()
|
D | xfs_file.c | 1163 loff_t pos_in, in xfs_file_remap_range() argument 1188 ret = xfs_reflink_remap_prep(file_in, pos_in, file_out, pos_out, in xfs_file_remap_range() 1193 trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); in xfs_file_remap_range() 1195 ret = xfs_reflink_remap_blocks(src, pos_in, dest, pos_out, len, in xfs_file_remap_range() 1206 if (pos_in == 0 && len == i_size_read(inode_in) && in xfs_file_remap_range()
|
/linux-6.6.21/fs/overlayfs/ |
D | file.c | 608 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, in ovl_copyfile() argument 639 ret = vfs_copy_file_range(real_in.file, pos_in, in ovl_copyfile() 644 ret = vfs_clone_file_range(real_in.file, pos_in, in ovl_copyfile() 649 ret = vfs_dedupe_file_range_one(real_in.file, pos_in, in ovl_copyfile() 668 static ssize_t ovl_copy_file_range(struct file *file_in, loff_t pos_in, in ovl_copy_file_range() argument 672 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, flags, in ovl_copy_file_range() 676 static loff_t ovl_remap_file_range(struct file *file_in, loff_t pos_in, in ovl_remap_file_range() argument 699 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, in ovl_remap_file_range()
|
/linux-6.6.21/fs/nfs/ |
D | nfs4file.c | 135 static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in __nfs4_copy_file_range() argument 179 ret = nfs42_proc_copy(file_in, pos_in, file_out, pos_out, count, in __nfs4_copy_file_range() 189 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in nfs4_copy_file_range() argument 195 ret = __nfs4_copy_file_range(file_in, pos_in, file_out, pos_out, count, in nfs4_copy_file_range() 198 ret = generic_copy_file_range(file_in, pos_in, file_out, in nfs4_copy_file_range()
|
/linux-6.6.21/fs/btrfs/ |
D | reflink.h | 8 loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in,
|
D | reflink.c | 794 static int btrfs_remap_file_range_prep(struct file *file_in, loff_t pos_in, in btrfs_remap_file_range_prep() argument 834 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); in btrfs_remap_file_range_prep() 859 ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs), in btrfs_remap_file_range_prep() 868 return generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, in btrfs_remap_file_range_prep()
|
/linux-6.6.21/include/uapi/linux/ |
D | f2fs.h | 78 __u64 pos_in; /* start position in src_fd */ member
|
/linux-6.6.21/fs/f2fs/ |
D | file.c | 2782 static int f2fs_move_file_range(struct file *file_in, loff_t pos_in, in f2fs_move_file_range() argument 2805 if (pos_out < 0 || pos_in < 0) in f2fs_move_file_range() 2809 if (pos_in == pos_out) in f2fs_move_file_range() 2811 if (pos_out > pos_in && pos_out < pos_in + len) in f2fs_move_file_range() 2828 if (pos_in + len > src->i_size || pos_in + len < pos_in) in f2fs_move_file_range() 2831 olen = len = src->i_size - pos_in; in f2fs_move_file_range() 2832 if (pos_in + len == src->i_size) in f2fs_move_file_range() 2833 len = ALIGN(src->i_size, F2FS_BLKSIZE) - pos_in; in f2fs_move_file_range() 2844 if (!IS_ALIGNED(pos_in, F2FS_BLKSIZE) || in f2fs_move_file_range() 2845 !IS_ALIGNED(pos_in + len, F2FS_BLKSIZE) || in f2fs_move_file_range() [all …]
|
/linux-6.6.21/fs/ocfs2/ |
D | refcounttree.h | 110 loff_t pos_in,
|
D | refcounttree.c | 4475 loff_t pos_in, in ocfs2_reflink_remap_extent() argument 4499 spos = ocfs2_bytes_to_clusters(s_inode->i_sb, pos_in); in ocfs2_reflink_remap_extent() 4501 slast = ocfs2_clusters_for_bytes(s_inode->i_sb, pos_in + len); in ocfs2_reflink_remap_extent() 4589 loff_t pos_in, in ocfs2_reflink_remap_blocks() argument 4610 if (pos_in == pos_out && pos_in == 0 && len == i_size_read(s_inode) && in ocfs2_reflink_remap_blocks() 4669 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh, in ocfs2_reflink_remap_blocks()
|
D | file.c | 2674 static loff_t ocfs2_remap_file_range(struct file *file_in, loff_t pos_in, in ocfs2_remap_file_range() argument 2704 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, in ocfs2_remap_file_range() 2720 remapped = ocfs2_reflink_remap_blocks(inode_in, in_bh, pos_in, in ocfs2_remap_file_range()
|
/linux-6.6.21/include/linux/ |
D | dax.h | 255 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in,
|
D | fs.h | 1949 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in, 2029 extern ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, 2032 int __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, 2036 int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, 2039 extern loff_t do_clone_file_range(struct file *file_in, loff_t pos_in, 2042 extern loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in,
|
/linux-6.6.21/fs/fuse/ |
D | file.c | 3081 static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in, in __fuse_copy_file_range() argument 3095 .off_in = pos_in, in __fuse_copy_file_range() 3116 err = fuse_writeback_range(inode_in, pos_in, pos_in + len - 1); in __fuse_copy_file_range()
|
/linux-6.6.21/Documentation/filesystems/ |
D | locking.rst | 549 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
|
D | vfs.rst | 1107 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in, 1212 implementation should remap len bytes at pos_in of the source
|