Lines Matching refs:t_inode

3928 				       struct inode *t_inode,  in ocfs2_duplicate_inline_data()  argument
3946 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh, in ocfs2_duplicate_inline_data()
3956 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data()
3957 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL; in ocfs2_duplicate_inline_data()
3958 t_di->i_dyn_features = cpu_to_le16(OCFS2_I(t_inode)->ip_dyn_features); in ocfs2_duplicate_inline_data()
3959 spin_unlock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data()
3970 struct inode *t_inode, in ocfs2_duplicate_extent_list() argument
3982 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(t_inode), t_bh); in ocfs2_duplicate_extent_list()
3996 ret = ocfs2_add_refcounted_extent(t_inode, &et, in ocfs2_duplicate_extent_list()
4023 struct inode *t_inode, in ocfs2_complete_reflink() argument
4033 handle = ocfs2_start_trans(OCFS2_SB(t_inode->i_sb), in ocfs2_complete_reflink()
4041 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh, in ocfs2_complete_reflink()
4048 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_complete_reflink()
4049 OCFS2_I(t_inode)->ip_clusters = OCFS2_I(s_inode)->ip_clusters; in ocfs2_complete_reflink()
4050 OCFS2_I(t_inode)->ip_attr = OCFS2_I(s_inode)->ip_attr; in ocfs2_complete_reflink()
4051 OCFS2_I(t_inode)->ip_dyn_features = OCFS2_I(s_inode)->ip_dyn_features; in ocfs2_complete_reflink()
4052 spin_unlock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_complete_reflink()
4053 i_size_write(t_inode, size); in ocfs2_complete_reflink()
4054 t_inode->i_blocks = s_inode->i_blocks; in ocfs2_complete_reflink()
4063 t_inode->i_uid = s_inode->i_uid; in ocfs2_complete_reflink()
4064 t_inode->i_gid = s_inode->i_gid; in ocfs2_complete_reflink()
4065 t_inode->i_mode = s_inode->i_mode; in ocfs2_complete_reflink()
4075 t_inode->i_ctime = current_time(t_inode); in ocfs2_complete_reflink()
4077 di->i_ctime = cpu_to_le64(t_inode->i_ctime.tv_sec); in ocfs2_complete_reflink()
4078 di->i_ctime_nsec = cpu_to_le32(t_inode->i_ctime.tv_nsec); in ocfs2_complete_reflink()
4080 t_inode->i_mtime = s_inode->i_mtime; in ocfs2_complete_reflink()
4088 ocfs2_commit_trans(OCFS2_SB(t_inode->i_sb), handle); in ocfs2_complete_reflink()
4094 struct inode *t_inode, in ocfs2_create_reflink_node() argument
4107 ret = ocfs2_set_refcount_tree(t_inode, t_bh, in ocfs2_create_reflink_node()
4116 t_inode, t_bh); in ocfs2_create_reflink_node()
4129 ret = ocfs2_duplicate_extent_list(s_inode, t_inode, t_bh, in ocfs2_create_reflink_node()
4475 struct inode *t_inode, in ocfs2_reflink_remap_extent() argument
4496 ocfs2_init_dinode_extent_tree(&t_et, INODE_CACHE(t_inode), t_bh); in ocfs2_reflink_remap_extent()
4499 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out); in ocfs2_reflink_remap_extent()
4519 pstart = ocfs2_clusters_to_bytes(t_inode->i_sb, tpos); in ocfs2_reflink_remap_extent()
4520 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters); in ocfs2_reflink_remap_extent()
4521 ret = ocfs2_remove_inode_range(t_inode, t_bh, pstart, plen); in ocfs2_reflink_remap_extent()
4554 ret = ocfs2_add_refcounted_extent(t_inode, &t_et, in ocfs2_reflink_remap_extent()
4579 remapped_bytes = ocfs2_clusters_to_bytes(t_inode->i_sb, remapped_clus); in ocfs2_reflink_remap_extent()
4589 struct inode *t_inode, in ocfs2_reflink_remap_blocks() argument
4610 i_size_read(t_inode) <= len && in ocfs2_reflink_remap_blocks()
4612 ret = ocfs2_duplicate_inline_data(s_inode, s_bh, t_inode, t_bh); in ocfs2_reflink_remap_blocks()
4625 ocfs2_is_refcount_inode(t_inode) && in ocfs2_reflink_remap_blocks()
4632 !ocfs2_is_refcount_inode(t_inode)) { in ocfs2_reflink_remap_blocks()
4649 if (!ocfs2_is_refcount_inode(t_inode)) { in ocfs2_reflink_remap_blocks()
4650 ret = ocfs2_set_refcount_tree(t_inode, t_bh, in ocfs2_reflink_remap_blocks()
4659 if (OCFS2_I(t_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_reflink_remap_blocks()
4660 ret = ocfs2_convert_inline_data_to_extents(t_inode, t_bh); in ocfs2_reflink_remap_blocks()
4668 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh, in ocfs2_reflink_remap_blocks()
4687 struct inode *t_inode, in ocfs2_reflink_inodes_lock() argument
4691 struct inode *inode2 = t_inode; in ocfs2_reflink_inodes_lock()
4696 bool same_inode = (s_inode == t_inode); in ocfs2_reflink_inodes_lock()
4701 lock_two_nondirectories(s_inode, t_inode); in ocfs2_reflink_inodes_lock()
4774 unlock_two_nondirectories(s_inode, t_inode); in ocfs2_reflink_inodes_lock()
4781 struct inode *t_inode, in ocfs2_reflink_inodes_unlock() argument
4787 if (s_inode != t_inode) { in ocfs2_reflink_inodes_unlock()
4788 ocfs2_inode_unlock(t_inode, 1); in ocfs2_reflink_inodes_unlock()
4789 ocfs2_rw_unlock(t_inode, 1); in ocfs2_reflink_inodes_unlock()
4792 unlock_two_nondirectories(s_inode, t_inode); in ocfs2_reflink_inodes_unlock()