/linux-master/fs/btrfs/ |
H A D | reflink.h | 10 loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in,
|
H A D | reflink.c | 793 static int btrfs_remap_file_range_prep(struct file *file_in, loff_t pos_in, argument 833 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); 858 ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs), 867 return generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out,
|
/linux-master/fs/ |
H A D | remap_range.c | 31 static int generic_remap_checks(struct file *file_in, loff_t pos_in, argument 44 if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_out, bs)) 48 if (pos_in + count < pos_in || pos_out + count < pos_out) 56 (pos_in >= size_in || pos_in + count > size_in || 61 if (pos_in >= size_in) 63 count = min(count, size_in - (uint64_t)pos_in); 76 if (pos_in + count == size_in && 78 bcount = ALIGN(size_in, bs) - pos_in; 277 __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *len, unsigned int remap_flags, const struct iomap_ops *dax_read_ops) argument 367 generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *len, unsigned int remap_flags) argument 376 vfs_clone_file_range(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t len, unsigned int remap_flags) argument [all...] |
H A D | read_write.c | 1412 static int generic_copy_file_checks(struct file *file_in, loff_t pos_in, argument 1454 if (pos_in + count < pos_in || pos_out + count < pos_out) 1459 if (pos_in >= size_in) 1462 count = min(count, size_in - (uint64_t)pos_in); 1470 pos_out + count > pos_in && 1471 pos_out < pos_in + count) 1483 ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, argument 1494 ret = generic_copy_file_checks(file_in, pos_in, file_out, pos_out, &len, 1499 ret = rw_verify_area(READ, file_in, &pos_in, le 1579 loff_t pos_in; local [all...] |
H A D | dax.c | 2059 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in, argument 2064 return __generic_remap_file_range_prep(file_in, pos_in, file_out,
|
/linux-master/fs/xfs/ |
H A 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,
|
H A D | xfs_reflink.c | 1356 loff_t pos_in, 1364 xfs_fileoff_t srcoff = XFS_B_TO_FSBT(mp, pos_in); 1480 loff_t pos_in, 1508 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, 1511 ret = dax_remap_file_range_prep(file_in, pos_in, file_out, 1354 xfs_reflink_remap_blocks( struct xfs_inode *src, loff_t pos_in, struct xfs_inode *dest, loff_t pos_out, loff_t remap_len, loff_t *remapped) argument 1478 xfs_reflink_remap_prep( struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *len, unsigned int remap_flags) argument
|
H A D | xfs_file.c | 1163 loff_t pos_in, 1188 ret = xfs_reflink_remap_prep(file_in, pos_in, file_out, pos_out, 1193 trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); 1195 ret = xfs_reflink_remap_blocks(src, pos_in, dest, pos_out, len, 1206 if (pos_in == 0 && len == i_size_read(inode_in) && 1161 xfs_file_remap_range( struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t len, unsigned int remap_flags) argument
|
/linux-master/include/linux/ |
H A D | splice.h | 91 static inline long splice_copy_file_range(struct file *in, loff_t pos_in, argument 95 return splice_file_range(in, &pos_in, out, &pos_out, len);
|
H A D | dax.h | 256 int dax_remap_file_range_prep(struct file *file_in, loff_t pos_in,
|
H A D | fs.h | 2042 loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in, 2122 int __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, 2126 int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, 2129 extern loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in,
|
/linux-master/fs/overlayfs/ |
H A D | file.c | 484 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, argument 515 ret = vfs_copy_file_range(real_in.file, pos_in, 520 ret = vfs_clone_file_range(real_in.file, pos_in, 525 ret = vfs_dedupe_file_range_one(real_in.file, pos_in, 544 static ssize_t ovl_copy_file_range(struct file *file_in, loff_t pos_in, argument 548 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, flags, 552 static loff_t ovl_remap_file_range(struct file *file_in, loff_t pos_in, argument 575 return ovl_copyfile(file_in, pos_in, file_out, pos_out, len,
|
/linux-master/include/uapi/linux/ |
H A D | f2fs.h | 78 __u64 pos_in; /* start position in src_fd */ member in struct:f2fs_move_range
|
/linux-master/fs/nfs/ |
H A D | nfs4file.c | 136 static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, argument 180 ret = nfs42_proc_copy(file_in, pos_in, file_out, pos_out, count, 190 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, argument 196 ret = __nfs4_copy_file_range(file_in, pos_in, file_out, pos_out, count, 199 ret = splice_copy_file_range(file_in, pos_in, file_out,
|
/linux-master/fs/ocfs2/ |
H A D | refcounttree.h | 110 loff_t pos_in,
|
H A D | refcounttree.c | 4472 /* Remap the range pos_in:len in s_inode to pos_out:len in t_inode. */ 4475 loff_t pos_in, 4499 spos = ocfs2_bytes_to_clusters(s_inode->i_sb, pos_in); 4501 slast = ocfs2_clusters_for_bytes(s_inode->i_sb, pos_in + len); 4589 loff_t pos_in, 4610 if (pos_in == pos_out && pos_in == 0 && len == i_size_read(s_inode) && 4669 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh, 4473 ocfs2_reflink_remap_extent(struct inode *s_inode, struct buffer_head *s_bh, loff_t pos_in, struct inode *t_inode, struct buffer_head *t_bh, loff_t pos_out, loff_t len, struct ocfs2_cached_dealloc_ctxt *dealloc) argument 4587 ocfs2_reflink_remap_blocks(struct inode *s_inode, struct buffer_head *s_bh, loff_t pos_in, struct inode *t_inode, struct buffer_head *t_bh, loff_t pos_out, loff_t len) argument
|
H A D | file.c | 2676 static loff_t ocfs2_remap_file_range(struct file *file_in, loff_t pos_in, argument 2706 ret = generic_remap_file_range_prep(file_in, pos_in, file_out, pos_out, 2722 remapped = ocfs2_reflink_remap_blocks(inode_in, in_bh, pos_in,
|
/linux-master/fs/f2fs/ |
H A D | file.c | 2800 static int f2fs_move_file_range(struct file *file_in, loff_t pos_in, argument 2823 if (pos_out < 0 || pos_in < 0) 2827 if (pos_in == pos_out) 2829 if (pos_out > pos_in && pos_out < pos_in + len) 2846 if (pos_in + len > src->i_size || pos_in + len < pos_in) 2849 olen = len = src->i_size - pos_in; 2850 if (pos_in 4944 compat_u64 pos_in; member in struct:compat_f2fs_move_range [all...] |
/linux-master/fs/fuse/ |
H A D | file.c | 3181 static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in, argument 3195 .off_in = pos_in, 3216 err = fuse_writeback_range(inode_in, pos_in, pos_in + len - 1);
|