Lines Matching refs:src_inode
1833 struct inode *src_inode; in btrfs_ioctl_snap_create_transid() local
1839 src_inode = file_inode(src.file); in btrfs_ioctl_snap_create_transid()
1840 if (src_inode->i_sb != file_inode(file)->i_sb) { in btrfs_ioctl_snap_create_transid()
1844 } else if (!inode_owner_or_capable(src_inode)) { in btrfs_ioctl_snap_create_transid()
1850 } else if (btrfs_ino(BTRFS_I(src_inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_snap_create_transid()
1861 BTRFS_I(src_inode)->root, in btrfs_ioctl_snap_create_transid()
4017 struct inode *src_inode = file_inode(src_file); in btrfs_remap_file_range() local
4019 bool same_inode = dst_inode == src_inode; in btrfs_remap_file_range()
4026 inode_lock(src_inode); in btrfs_remap_file_range()
4028 lock_two_nondirectories(src_inode, dst_inode); in btrfs_remap_file_range()
4036 ret = btrfs_extent_same(src_inode, off, len, dst_inode, destoff); in btrfs_remap_file_range()
4042 inode_unlock(src_inode); in btrfs_remap_file_range()
4044 unlock_two_nondirectories(src_inode, dst_inode); in btrfs_remap_file_range()