Home
last modified time | relevance | path

Searched refs:dst_inode (Results 1 – 6 of 6) sorted by relevance

/fs/nfs/
Dnfs4file.c203 struct inode *dst_inode = file_inode(dst_file); in nfs42_remap_file_range() local
204 struct nfs_server *server = NFS_SERVER(dst_inode); in nfs42_remap_file_range()
217 if (IS_SWAPFILE(dst_inode) || IS_SWAPFILE(src_inode)) in nfs42_remap_file_range()
229 if (src_inode == dst_inode) in nfs42_remap_file_range()
235 } else if (dst_inode < src_inode) { in nfs42_remap_file_range()
236 inode_lock_nested(dst_inode, I_MUTEX_PARENT); in nfs42_remap_file_range()
240 inode_lock_nested(dst_inode, I_MUTEX_CHILD); in nfs42_remap_file_range()
248 ret = nfs_sync_inode(dst_inode); in nfs42_remap_file_range()
257 truncate_inode_pages_range(&dst_inode->i_data, dst_off, dst_off + count - 1); in nfs42_remap_file_range()
262 } else if (dst_inode < src_inode) { in nfs42_remap_file_range()
[all …]
Dnfs42proc.c234 struct inode *dst_inode = file_inode(dst); in _nfs42_proc_copy() local
235 struct nfs_server *server = NFS_SERVER(dst_inode); in _nfs42_proc_copy()
256 status = nfs_sync_inode(dst_inode); in _nfs42_proc_copy()
298 WARN_ON_ONCE(invalidate_inode_pages2_range(dst_inode->i_mapping, in _nfs42_proc_copy()
848 struct inode *dst_inode = file_inode(dst_f); in _nfs42_proc_clone() local
849 struct nfs_server *server = NFS_SERVER(dst_inode); in _nfs42_proc_clone()
852 .dst_fh = NFS_FH(dst_inode), in _nfs42_proc_clone()
883 status = nfs_post_op_update_inode(dst_inode, res.dst_fattr); in _nfs42_proc_clone()
Dnfs4proc.c5422 struct inode *dst_inode = file_inode(dst); in _nfs4_proc_commit() local
5423 struct nfs_server *server = NFS_SERVER(dst_inode); in _nfs4_proc_commit()
5430 args->fh = NFS_FH(dst_inode); in _nfs4_proc_commit()
/fs/ceph/
Dfile.c1924 static int is_file_size_ok(struct inode *src_inode, struct inode *dst_inode, in is_file_size_ok() argument
1941 size = i_size_read(dst_inode); in is_file_size_ok()
1944 if (inode_newsize_ok(dst_inode, endoff)) in is_file_size_ok()
1947 if (ceph_quota_is_max_bytes_exceeded(dst_inode, endoff)) in is_file_size_ok()
1958 struct inode *dst_inode = file_inode(dst_file); in __ceph_copy_file_range() local
1960 struct ceph_inode_info *dst_ci = ceph_inode(dst_inode); in __ceph_copy_file_range()
1972 if (src_inode->i_sb != dst_inode->i_sb) { in __ceph_copy_file_range()
1973 struct ceph_fs_client *dst_fsc = ceph_inode_to_client(dst_inode); in __ceph_copy_file_range()
1982 if (ceph_snap(dst_inode) != CEPH_NOSNAP) 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()
[all …]
/fs/f2fs/
Dfile.c1194 static int __clone_blkaddrs(struct inode *src_inode, struct inode *dst_inode, in __clone_blkaddrs() argument
1214 set_new_dnode(&dn, dst_inode, NULL, NULL, 0); in __clone_blkaddrs()
1226 ADDRS_PER_PAGE(dn.node_page, dst_inode) - in __clone_blkaddrs()
1235 f2fs_i_blocks_write(dst_inode, in __clone_blkaddrs()
1245 if (dst_inode->i_size < new_size) in __clone_blkaddrs()
1246 f2fs_i_size_write(dst_inode, new_size); in __clone_blkaddrs()
1257 pdst = f2fs_get_new_data_page(dst_inode, NULL, dst + i, in __clone_blkaddrs()
1279 struct inode *dst_inode, pgoff_t src, pgoff_t dst, in __exchange_data_block() argument
1309 ret = __clone_blkaddrs(src_inode, dst_inode, src_blkaddr, in __exchange_data_block()
/fs/btrfs/
Dioctl.c4018 struct inode *dst_inode = file_inode(dst_file); in btrfs_remap_file_range() local
4019 bool same_inode = dst_inode == 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()
4044 unlock_two_nondirectories(src_inode, dst_inode); in btrfs_remap_file_range()