Searched refs:src_inode (Results 1 – 7 of 7) sorted by relevance
/fs/nfs/ |
D | nfs4file.c | 205 struct inode *src_inode = file_inode(src_file); in nfs42_remap_file_range() local 217 if (IS_SWAPFILE(dst_inode) || IS_SWAPFILE(src_inode)) in nfs42_remap_file_range() 225 if (!IS_ALIGNED(count, bs) && i_size_read(src_inode) != (src_off + count)) in nfs42_remap_file_range() 229 if (src_inode == dst_inode) in nfs42_remap_file_range() 234 inode_lock(src_inode); in nfs42_remap_file_range() 235 } else if (dst_inode < src_inode) { in nfs42_remap_file_range() 237 inode_lock_nested(src_inode, I_MUTEX_CHILD); in nfs42_remap_file_range() 239 inode_lock_nested(src_inode, I_MUTEX_PARENT); in nfs42_remap_file_range() 245 ret = nfs_sync_inode(src_inode); in nfs42_remap_file_range() 261 inode_unlock(src_inode); in nfs42_remap_file_range() [all …]
|
D | nfs42proc.c | 847 struct inode *src_inode = file_inode(src_f); in _nfs42_proc_clone() local 851 .src_fh = NFS_FH(src_inode), in _nfs42_proc_clone()
|
/fs/cifs/ |
D | ioctl.c | 85 struct inode *src_inode; in cifs_ioctl_copychunk() local 113 src_inode = file_inode(src_file.file); in cifs_ioctl_copychunk() 115 if (S_ISDIR(src_inode->i_mode)) in cifs_ioctl_copychunk() 119 src_inode->i_size, 0); in cifs_ioctl_copychunk()
|
D | cifsfs.c | 1074 struct inode *src_inode = file_inode(src_file); in cifs_remap_file_range() local 1105 lock_two_nondirectories(target_inode, src_inode); in cifs_remap_file_range() 1108 len = src_inode->i_size - off; in cifs_remap_file_range() 1126 unlock_two_nondirectories(src_inode, target_inode); in cifs_remap_file_range() 1137 struct inode *src_inode = file_inode(src_file); in cifs_file_copychunk_range() local 1173 lock_two_nondirectories(target_inode, src_inode); in cifs_file_copychunk_range() 1193 unlock_two_nondirectories(src_inode, target_inode); in cifs_file_copychunk_range()
|
/fs/ceph/ |
D | file.c | 1924 static int is_file_size_ok(struct inode *src_inode, struct inode *dst_inode, in is_file_size_ok() argument 1929 size = i_size_read(src_inode); in is_file_size_ok() 1957 struct inode *src_inode = file_inode(src_file); in __ceph_copy_file_range() local 1959 struct ceph_inode_info *src_ci = ceph_inode(src_inode); in __ceph_copy_file_range() 1962 struct ceph_fs_client *src_fsc = ceph_inode_to_client(src_inode); in __ceph_copy_file_range() 1972 if (src_inode->i_sb != dst_inode->i_sb) { in __ceph_copy_file_range() 2041 ret = is_file_size_ok(src_inode, dst_inode, src_off, dst_off, len); in __ceph_copy_file_range() 2095 err = is_file_size_ok(src_inode, dst_inode, in __ceph_copy_file_range()
|
/fs/f2fs/ |
D | file.c | 1194 static int __clone_blkaddrs(struct inode *src_inode, struct inode *dst_inode, in __clone_blkaddrs() argument 1198 struct f2fs_sb_info *sbi = F2FS_I_SB(src_inode); in __clone_blkaddrs() 1233 f2fs_i_blocks_write(src_inode, in __clone_blkaddrs() 1253 psrc = f2fs_get_lock_data_page(src_inode, in __clone_blkaddrs() 1268 ret = f2fs_truncate_hole(src_inode, in __clone_blkaddrs() 1278 static int __exchange_data_block(struct inode *src_inode, in __exchange_data_block() argument 1288 olen = min((pgoff_t)4 * ADDRS_PER_BLOCK(src_inode), len); in __exchange_data_block() 1290 src_blkaddr = f2fs_kvzalloc(F2FS_I_SB(src_inode), in __exchange_data_block() 1296 do_replace = f2fs_kvzalloc(F2FS_I_SB(src_inode), in __exchange_data_block() 1304 ret = __read_out_blkaddrs(src_inode, src_blkaddr, in __exchange_data_block() [all …]
|
/fs/btrfs/ |
D | ioctl.c | 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() [all …]
|