pos_in 2951 fs/btrfs/ctree.h loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in, pos_in 3825 fs/btrfs/ioctl.c static int btrfs_remap_file_range_prep(struct file *file_in, loff_t pos_in, pos_in 3868 fs/btrfs/ioctl.c wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); pos_in 3902 fs/btrfs/ioctl.c ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs), pos_in 3911 fs/btrfs/ioctl.c return generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, pos_in 466 fs/f2fs/f2fs.h u64 pos_in; /* start position in src_fd */ pos_in 2568 fs/f2fs/file.c static int f2fs_move_file_range(struct file *file_in, loff_t pos_in, pos_in 2592 fs/f2fs/file.c if (pos_in == pos_out) pos_in 2594 fs/f2fs/file.c if (pos_out > pos_in && pos_out < pos_in + len) pos_in 2606 fs/f2fs/file.c if (pos_in + len > src->i_size || pos_in + len < pos_in) pos_in 2609 fs/f2fs/file.c olen = len = src->i_size - pos_in; pos_in 2610 fs/f2fs/file.c if (pos_in + len == src->i_size) pos_in 2611 fs/f2fs/file.c len = ALIGN(src->i_size, F2FS_BLKSIZE) - pos_in; pos_in 2622 fs/f2fs/file.c if (!IS_ALIGNED(pos_in, F2FS_BLKSIZE) || pos_in 2623 fs/f2fs/file.c !IS_ALIGNED(pos_in + len, F2FS_BLKSIZE) || pos_in 2637 fs/f2fs/file.c pos_in, pos_in + len); pos_in 2656 fs/f2fs/file.c ret = __exchange_data_block(src, dst, pos_in >> F2FS_BLKSIZE_BITS, pos_in 2707 fs/f2fs/file.c err = f2fs_move_file_range(filp, range.pos_in, dst.file, pos_in 3249 fs/fuse/file.c static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 3262 fs/fuse/file.c .off_in = pos_in, pos_in 3284 fs/fuse/file.c err = fuse_writeback_range(inode_in, pos_in, pos_in + len); pos_in 131 fs/nfs/nfs4file.c static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 142 fs/nfs/nfs4file.c return nfs42_proc_copy(file_in, pos_in, file_out, pos_out, count); pos_in 145 fs/nfs/nfs4file.c static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 151 fs/nfs/nfs4file.c ret = __nfs4_copy_file_range(file_in, pos_in, file_out, pos_out, count, pos_in 154 fs/nfs/nfs4file.c ret = generic_copy_file_range(file_in, pos_in, file_out, pos_in 2563 fs/ocfs2/file.c static loff_t ocfs2_remap_file_range(struct file *file_in, loff_t pos_in, pos_in 2593 fs/ocfs2/file.c ret = generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, pos_in 2609 fs/ocfs2/file.c remapped = ocfs2_reflink_remap_blocks(inode_in, in_bh, pos_in, pos_in 4502 fs/ocfs2/refcounttree.c loff_t pos_in, pos_in 4526 fs/ocfs2/refcounttree.c spos = ocfs2_bytes_to_clusters(s_inode->i_sb, pos_in); pos_in 4528 fs/ocfs2/refcounttree.c slast = ocfs2_clusters_for_bytes(s_inode->i_sb, pos_in + len); pos_in 4616 fs/ocfs2/refcounttree.c loff_t pos_in, pos_in 4637 fs/ocfs2/refcounttree.c if (pos_in == pos_out && pos_in == 0 && len == i_size_read(s_inode) && pos_in 4696 fs/ocfs2/refcounttree.c ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh, pos_in 112 fs/ocfs2/refcounttree.h loff_t pos_in, pos_in 555 fs/overlayfs/file.c static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, pos_in 577 fs/overlayfs/file.c ret = vfs_copy_file_range(real_in.file, pos_in, pos_in 582 fs/overlayfs/file.c ret = vfs_clone_file_range(real_in.file, pos_in, pos_in 587 fs/overlayfs/file.c ret = vfs_dedupe_file_range_one(real_in.file, pos_in, pos_in 603 fs/overlayfs/file.c static ssize_t ovl_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 607 fs/overlayfs/file.c return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, flags, pos_in 611 fs/overlayfs/file.c static loff_t ovl_remap_file_range(struct file *file_in, loff_t pos_in, pos_in 634 fs/overlayfs/file.c return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, pos_in 1589 fs/read_write.c ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 1593 fs/read_write.c return do_splice_direct(file_in, &pos_in, file_out, &pos_out, pos_in 1598 fs/read_write.c static ssize_t do_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 1612 fs/read_write.c return file_out->f_op->copy_file_range(file_in, pos_in, pos_in 1616 fs/read_write.c return generic_copy_file_range(file_in, pos_in, file_out, pos_out, len, pos_in 1625 fs/read_write.c ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 1634 fs/read_write.c ret = generic_copy_file_checks(file_in, pos_in, file_out, pos_out, &len, pos_in 1639 fs/read_write.c ret = rw_verify_area(READ, file_in, &pos_in, len); pos_in 1660 fs/read_write.c cloned = file_in->f_op->remap_file_range(file_in, pos_in, pos_in 1670 fs/read_write.c ret = do_copy_file_range(file_in, pos_in, file_out, pos_out, len, pos_in 1694 fs/read_write.c loff_t pos_in; pos_in 1710 fs/read_write.c if (copy_from_user(&pos_in, off_in, sizeof(loff_t))) pos_in 1713 fs/read_write.c pos_in = f_in.file->f_pos; pos_in 1723 fs/read_write.c ret = vfs_copy_file_range(f_in.file, pos_in, f_out.file, pos_out, len, pos_in 1726 fs/read_write.c pos_in += ret; pos_in 1730 fs/read_write.c if (copy_to_user(off_in, &pos_in, sizeof(loff_t))) pos_in 1733 fs/read_write.c f_in.file->f_pos = pos_in; pos_in 1944 fs/read_write.c int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, pos_in 1970 fs/read_write.c if ((remap_flags & REMAP_FILE_DEDUP) || pos_in == isize) pos_in 1972 fs/read_write.c if (pos_in > isize) pos_in 1974 fs/read_write.c *len = isize - pos_in; pos_in 1980 fs/read_write.c ret = generic_remap_checks(file_in, pos_in, file_out, pos_out, len, pos_in 1991 fs/read_write.c pos_in, pos_in + *len - 1); pos_in 2006 fs/read_write.c ret = vfs_dedupe_file_range_compare(inode_in, pos_in, pos_in 2027 fs/read_write.c loff_t do_clone_file_range(struct file *file_in, loff_t pos_in, pos_in 2050 fs/read_write.c ret = remap_verify_area(file_in, pos_in, len, false); pos_in 2058 fs/read_write.c ret = file_in->f_op->remap_file_range(file_in, pos_in, pos_in 2069 fs/read_write.c loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in, pos_in 2076 fs/read_write.c ret = do_clone_file_range(file_in, pos_in, file_out, pos_out, len, pos_in 971 fs/xfs/xfs_file.c loff_t pos_in, pos_in 996 fs/xfs/xfs_file.c ret = xfs_reflink_remap_prep(file_in, pos_in, file_out, pos_out, pos_in 1001 fs/xfs/xfs_file.c trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); pos_in 1003 fs/xfs/xfs_file.c ret = xfs_reflink_remap_blocks(src, pos_in, dest, pos_out, len, pos_in 1014 fs/xfs/xfs_file.c if (pos_in == 0 && len == i_size_read(inode_in) && pos_in 1114 fs/xfs/xfs_reflink.c loff_t pos_in, pos_in 1131 fs/xfs/xfs_reflink.c srcoff = XFS_B_TO_FSBT(src->i_mount, pos_in); pos_in 1309 fs/xfs/xfs_reflink.c loff_t pos_in, pos_in 1342 fs/xfs/xfs_reflink.c ret = generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, pos_in 42 fs/xfs/xfs_reflink.h extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in, pos_in 51 fs/xfs/xfs_reflink.h extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in, pos_in 54 fs/xfs/xfs_reflink.h extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in, pos_in 1858 include/linux/fs.h loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in, pos_in 1923 include/linux/fs.h extern ssize_t generic_copy_file_range(struct file *file_in, loff_t pos_in, pos_in 1926 include/linux/fs.h extern int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, pos_in 1930 include/linux/fs.h extern loff_t do_clone_file_range(struct file *file_in, loff_t pos_in, pos_in 1933 include/linux/fs.h extern loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in, pos_in 3099 include/linux/fs.h extern int generic_remap_checks(struct file *file_in, loff_t pos_in, pos_in 3103 include/linux/fs.h extern int generic_copy_file_checks(struct file *file_in, loff_t pos_in, pos_in 2975 mm/filemap.c int generic_remap_checks(struct file *file_in, loff_t pos_in, pos_in 2988 mm/filemap.c if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_out, bs)) pos_in 2992 mm/filemap.c if (pos_in + count < pos_in || pos_out + count < pos_out) pos_in 3000 mm/filemap.c (pos_in >= size_in || pos_in + count > size_in || pos_in 3005 mm/filemap.c if (pos_in >= size_in) pos_in 3007 mm/filemap.c count = min(count, size_in - (uint64_t)pos_in); pos_in 3020 mm/filemap.c if (pos_in + count == size_in) { pos_in 3021 mm/filemap.c bcount = ALIGN(size_in, bs) - pos_in; pos_in 3030 mm/filemap.c pos_out + bcount > pos_in && pos_in 3031 mm/filemap.c pos_out < pos_in + bcount) pos_in 3076 mm/filemap.c int generic_copy_file_checks(struct file *file_in, loff_t pos_in, pos_in 3098 mm/filemap.c if (pos_in + count < pos_in || pos_out + count < pos_out) pos_in 3103 mm/filemap.c if (pos_in >= size_in) pos_in 3106 mm/filemap.c count = min(count, size_in - (uint64_t)pos_in); pos_in 3114 mm/filemap.c pos_out + count > pos_in && pos_in 3115 mm/filemap.c pos_out < pos_in + count)