Home
last modified time | relevance | path

Searched refs:inode_in (Results 1 – 7 of 7) sorted by relevance

/fs/
Dremap_range.c33 struct inode *inode_in = file_in->f_mapping->host; in generic_remap_checks() local
49 size_in = i_size_read(inode_in); in generic_remap_checks()
84 if (inode_in == inode_out && in generic_remap_checks()
135 static int generic_remap_check_len(struct inode *inode_in, in generic_remap_check_len() argument
141 u64 blkmask = i_blocksize(inode_in) - 1; in generic_remap_check_len()
297 struct inode *inode_in = file_inode(file_in); in generic_remap_file_range_prep() local
299 bool same_inode = (inode_in == inode_out); in generic_remap_file_range_prep()
306 if (IS_SWAPFILE(inode_in) || IS_SWAPFILE(inode_out)) in generic_remap_file_range_prep()
310 if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode)) in generic_remap_file_range_prep()
312 if (!S_ISREG(inode_in->i_mode) || !S_ISREG(inode_out->i_mode)) in generic_remap_file_range_prep()
[all …]
Dread_write.c1402 struct inode *inode_in = file_inode(file_in); in generic_copy_file_checks() local
1436 if (IS_SWAPFILE(inode_in) || IS_SWAPFILE(inode_out)) in generic_copy_file_checks()
1444 size_in = i_size_read(inode_in); in generic_copy_file_checks()
1455 if (inode_in == inode_out && in generic_copy_file_checks()
1691 struct inode *inode_in = file_inode(file_in); in generic_file_rw_checks() local
1695 if (S_ISDIR(inode_in->i_mode) || S_ISDIR(inode_out->i_mode)) in generic_file_rw_checks()
1697 if (!S_ISREG(inode_in->i_mode) || !S_ISREG(inode_out->i_mode)) in generic_file_rw_checks()
/fs/btrfs/
Dreflink.c750 struct inode *inode_in = file_inode(file_in); in btrfs_remap_file_range_prep() local
753 bool same_inode = inode_out == inode_in; in btrfs_remap_file_range_prep()
764 inode_in->i_sb != inode_out->i_sb) in btrfs_remap_file_range_prep()
769 if ((BTRFS_I(inode_in)->flags & BTRFS_INODE_NODATASUM) != in btrfs_remap_file_range_prep()
789 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); in btrfs_remap_file_range_prep()
798 inode_dio_wait(inode_in); in btrfs_remap_file_range_prep()
819 ret = filemap_flush(inode_in->i_mapping); in btrfs_remap_file_range_prep()
823 ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs), in btrfs_remap_file_range_prep()
/fs/ocfs2/
Dfile.c2647 struct inode *inode_in = file_inode(file_in); in ocfs2_remap_file_range() local
2649 struct ocfs2_super *osb = OCFS2_SB(inode_in->i_sb); in ocfs2_remap_file_range()
2651 bool same_inode = (inode_in == inode_out); in ocfs2_remap_file_range()
2663 ret = ocfs2_reflink_inodes_lock(inode_in, &in_bh, inode_out, &out_bh); in ocfs2_remap_file_range()
2669 if ((OCFS2_I(inode_in)->ip_flags & OCFS2_INODE_SYSTEM_FILE) || in ocfs2_remap_file_range()
2679 down_write(&OCFS2_I(inode_in)->ip_alloc_sem); in ocfs2_remap_file_range()
2689 remapped = ocfs2_reflink_remap_blocks(inode_in, in_bh, pos_in, in ocfs2_remap_file_range()
2691 up_write(&OCFS2_I(inode_in)->ip_alloc_sem); in ocfs2_remap_file_range()
2704 ocfs2_extent_map_trunc(inode_in, 0); in ocfs2_remap_file_range()
2714 ocfs2_reflink_inodes_unlock(inode_in, in_bh, inode_out, out_bh); in ocfs2_remap_file_range()
/fs/xfs/
Dxfs_reflink.c1290 struct inode *inode_in = file_inode(file_in); in xfs_reflink_remap_prep() local
1291 struct xfs_inode *src = XFS_I(inode_in); in xfs_reflink_remap_prep()
1308 if (IS_DAX(inode_in) || IS_DAX(inode_out)) in xfs_reflink_remap_prep()
Dxfs_file.c1082 struct inode *inode_in = file_inode(file_in); in xfs_file_remap_range() local
1083 struct xfs_inode *src = XFS_I(inode_in); in xfs_file_remap_range()
1119 if (pos_in == 0 && len == i_size_read(inode_in) && in xfs_file_remap_range()
/fs/fuse/
Dfile.c3530 struct inode *inode_in = file_inode(file_in); in __fuse_copy_file_range() local
3570 inode_lock(inode_in); in __fuse_copy_file_range()
3571 err = fuse_writeback_range(inode_in, pos_in, pos_in + len - 1); in __fuse_copy_file_range()
3572 inode_unlock(inode_in); in __fuse_copy_file_range()