Home
last modified time | relevance | path

Searched refs:pos_in (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/fs/
Dremap_range.c30 static int generic_remap_checks(struct file *file_in, loff_t pos_in, 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()
55 (pos_in >= size_in || pos_in + count > size_in || in generic_remap_checks()
60 if (pos_in >= size_in) in generic_remap_checks()
62 count = min(count, size_in - (uint64_t)pos_in); in generic_remap_checks()
75 if (pos_in + count == size_in && in generic_remap_checks()
77 bcount = ALIGN(size_in, bs) - pos_in; in generic_remap_checks()
86 pos_out + bcount > pos_in && in generic_remap_checks()
87 pos_out < pos_in + bcount) in generic_remap_checks()
[all …]
Dread_write.c1387 ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, in generic_copy_file_range() argument
1393 return do_splice_direct(file_in, &pos_in, file_out, &pos_out, in generic_copy_file_range()
1405 static int generic_copy_file_checks(struct file *file_in, loff_t pos_in, in generic_copy_file_checks() argument
1447 if (pos_in + count < pos_in || pos_out + count < pos_out) in generic_copy_file_checks()
1452 if (pos_in >= size_in) in generic_copy_file_checks()
1455 count = min(count, size_in - (uint64_t)pos_in); 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()
1476 ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, 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()
[all …]
Ddax.c1952 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in, in dax_remap_file_range_prep() argument
1957 return __generic_remap_file_range_prep(file_in, pos_in, file_out, in dax_remap_file_range_prep()
/linux-6.1.9/fs/xfs/
Dxfs_reflink.h38 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,
Dxfs_file.c1104 loff_t pos_in, 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()
1147 if (pos_in == 0 && len == i_size_read(inode_in) && in xfs_file_remap_range()
Dxfs_reflink.c1351 loff_t pos_in, in xfs_reflink_remap_blocks() argument
1359 xfs_fileoff_t srcoff = XFS_B_TO_FSBT(mp, pos_in); in xfs_reflink_remap_blocks()
1474 loff_t pos_in, in xfs_reflink_remap_prep() argument
1502 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, in xfs_reflink_remap_prep()
1505 ret = dax_remap_file_range_prep(file_in, pos_in, file_out, in xfs_reflink_remap_prep()
/linux-6.1.9/fs/overlayfs/
Dfile.c572 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, in ovl_copyfile() argument
603 ret = vfs_copy_file_range(real_in.file, pos_in, in ovl_copyfile()
608 ret = vfs_clone_file_range(real_in.file, pos_in, in ovl_copyfile()
613 ret = vfs_dedupe_file_range_one(real_in.file, pos_in, in ovl_copyfile()
632 static ssize_t ovl_copy_file_range(struct file *file_in, loff_t pos_in, in ovl_copy_file_range() argument
636 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, flags, in ovl_copy_file_range()
640 static loff_t ovl_remap_file_range(struct file *file_in, loff_t pos_in, in ovl_remap_file_range() argument
663 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, in ovl_remap_file_range()
/linux-6.1.9/fs/nfs/
Dnfs4file.c139 static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, 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()
193 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, 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()
202 ret = generic_copy_file_range(file_in, pos_in, file_out, in nfs4_copy_file_range()
/linux-6.1.9/fs/btrfs/
Dreflink.h8 loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in,
Dreflink.c789 static int btrfs_remap_file_range_prep(struct file *file_in, loff_t pos_in, in btrfs_remap_file_range_prep() argument
829 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); in btrfs_remap_file_range_prep()
854 ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, 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()
/linux-6.1.9/include/uapi/linux/
Df2fs.h77 __u64 pos_in; /* start position in src_fd */ member
/linux-6.1.9/fs/f2fs/
Dfile.c2741 static int f2fs_move_file_range(struct file *file_in, loff_t pos_in, in f2fs_move_file_range() argument
2764 if (pos_out < 0 || pos_in < 0) in f2fs_move_file_range()
2768 if (pos_in == pos_out) in f2fs_move_file_range()
2770 if (pos_out > pos_in && pos_out < pos_in + len) in f2fs_move_file_range()
2782 if (pos_in + len > src->i_size || pos_in + len < pos_in) in f2fs_move_file_range()
2785 olen = len = src->i_size - pos_in; in f2fs_move_file_range()
2786 if (pos_in + len == src->i_size) in f2fs_move_file_range()
2787 len = ALIGN(src->i_size, F2FS_BLKSIZE) - pos_in; in f2fs_move_file_range()
2798 if (!IS_ALIGNED(pos_in, F2FS_BLKSIZE) || in f2fs_move_file_range()
2799 !IS_ALIGNED(pos_in + len, F2FS_BLKSIZE) || in f2fs_move_file_range()
[all …]
/linux-6.1.9/fs/ocfs2/
Drefcounttree.h110 loff_t pos_in,
Drefcounttree.c4474 loff_t pos_in, in ocfs2_reflink_remap_extent() argument
4498 spos = ocfs2_bytes_to_clusters(s_inode->i_sb, pos_in); in ocfs2_reflink_remap_extent()
4500 slast = ocfs2_clusters_for_bytes(s_inode->i_sb, pos_in + len); in ocfs2_reflink_remap_extent()
4588 loff_t pos_in, 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()
4668 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh, in ocfs2_reflink_remap_blocks()
Dfile.c2634 static loff_t ocfs2_remap_file_range(struct file *file_in, loff_t pos_in, in ocfs2_remap_file_range() argument
2664 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, in ocfs2_remap_file_range()
2680 remapped = ocfs2_reflink_remap_blocks(inode_in, in_bh, pos_in, in ocfs2_remap_file_range()
/linux-6.1.9/include/linux/
Ddax.h253 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in,
Dfs.h2146 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
2217 extern ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in,
2220 int __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
2224 int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
2227 extern loff_t do_clone_file_range(struct file *file_in, loff_t pos_in,
2230 extern loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in,
/linux-6.1.9/fs/fuse/
Dfile.c3045 static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in, in __fuse_copy_file_range() argument
3059 .off_in = pos_in, in __fuse_copy_file_range()
3080 err = fuse_writeback_range(inode_in, pos_in, pos_in + len - 1); in __fuse_copy_file_range()
/linux-6.1.9/Documentation/filesystems/
Dlocking.rst538 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
Dvfs.rst1035 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in,
1144 implementation should remap len bytes at pos_in of the source