Lines Matching refs:t_inode
3923 struct inode *t_inode, in ocfs2_duplicate_inline_data() argument
3941 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh, in ocfs2_duplicate_inline_data()
3951 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data()
3952 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL; in ocfs2_duplicate_inline_data()
3953 t_di->i_dyn_features = cpu_to_le16(OCFS2_I(t_inode)->ip_dyn_features); in ocfs2_duplicate_inline_data()
3954 spin_unlock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data()
3965 struct inode *t_inode, in ocfs2_duplicate_extent_list() argument
3977 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(t_inode), t_bh); in ocfs2_duplicate_extent_list()
3991 ret = ocfs2_add_refcounted_extent(t_inode, &et, in ocfs2_duplicate_extent_list()
4018 struct inode *t_inode, in ocfs2_complete_reflink() argument
4028 handle = ocfs2_start_trans(OCFS2_SB(t_inode->i_sb), in ocfs2_complete_reflink()
4036 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh, in ocfs2_complete_reflink()
4043 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_complete_reflink()
4044 OCFS2_I(t_inode)->ip_clusters = OCFS2_I(s_inode)->ip_clusters; in ocfs2_complete_reflink()
4045 OCFS2_I(t_inode)->ip_attr = OCFS2_I(s_inode)->ip_attr; in ocfs2_complete_reflink()
4046 OCFS2_I(t_inode)->ip_dyn_features = OCFS2_I(s_inode)->ip_dyn_features; in ocfs2_complete_reflink()
4047 spin_unlock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_complete_reflink()
4048 i_size_write(t_inode, size); in ocfs2_complete_reflink()
4049 t_inode->i_blocks = s_inode->i_blocks; in ocfs2_complete_reflink()
4058 t_inode->i_uid = s_inode->i_uid; in ocfs2_complete_reflink()
4059 t_inode->i_gid = s_inode->i_gid; in ocfs2_complete_reflink()
4060 t_inode->i_mode = s_inode->i_mode; in ocfs2_complete_reflink()
4070 inode_set_ctime_current(t_inode); in ocfs2_complete_reflink()
4072 di->i_ctime = cpu_to_le64(inode_get_ctime_sec(t_inode)); in ocfs2_complete_reflink()
4073 di->i_ctime_nsec = cpu_to_le32(inode_get_ctime_nsec(t_inode)); in ocfs2_complete_reflink()
4075 inode_set_mtime_to_ts(t_inode, inode_get_mtime(s_inode)); in ocfs2_complete_reflink()
4083 ocfs2_commit_trans(OCFS2_SB(t_inode->i_sb), handle); in ocfs2_complete_reflink()
4089 struct inode *t_inode, in ocfs2_create_reflink_node() argument
4102 ret = ocfs2_set_refcount_tree(t_inode, t_bh, in ocfs2_create_reflink_node()
4111 t_inode, t_bh); in ocfs2_create_reflink_node()
4124 ret = ocfs2_duplicate_extent_list(s_inode, t_inode, t_bh, in ocfs2_create_reflink_node()
4491 struct inode *t_inode, in ocfs2_reflink_remap_extent() argument
4512 ocfs2_init_dinode_extent_tree(&t_et, INODE_CACHE(t_inode), t_bh); in ocfs2_reflink_remap_extent()
4515 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out); in ocfs2_reflink_remap_extent()
4535 pstart = ocfs2_clusters_to_bytes(t_inode->i_sb, tpos); in ocfs2_reflink_remap_extent()
4536 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters); in ocfs2_reflink_remap_extent()
4537 ret = ocfs2_remove_inode_range(t_inode, t_bh, pstart, plen); in ocfs2_reflink_remap_extent()
4570 ret = ocfs2_add_refcounted_extent(t_inode, &t_et, in ocfs2_reflink_remap_extent()
4595 remapped_bytes = ocfs2_clusters_to_bytes(t_inode->i_sb, remapped_clus); in ocfs2_reflink_remap_extent()
4605 struct inode *t_inode, in ocfs2_reflink_remap_blocks() argument
4626 i_size_read(t_inode) <= len && in ocfs2_reflink_remap_blocks()
4628 ret = ocfs2_duplicate_inline_data(s_inode, s_bh, t_inode, t_bh); in ocfs2_reflink_remap_blocks()
4641 ocfs2_is_refcount_inode(t_inode) && in ocfs2_reflink_remap_blocks()
4648 !ocfs2_is_refcount_inode(t_inode)) { in ocfs2_reflink_remap_blocks()
4665 if (!ocfs2_is_refcount_inode(t_inode)) { in ocfs2_reflink_remap_blocks()
4666 ret = ocfs2_set_refcount_tree(t_inode, t_bh, in ocfs2_reflink_remap_blocks()
4675 if (OCFS2_I(t_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_reflink_remap_blocks()
4676 ret = ocfs2_convert_inline_data_to_extents(t_inode, t_bh); in ocfs2_reflink_remap_blocks()
4684 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh, in ocfs2_reflink_remap_blocks()
4703 struct inode *t_inode, in ocfs2_reflink_inodes_lock() argument
4707 struct inode *inode2 = t_inode; in ocfs2_reflink_inodes_lock()
4712 bool same_inode = (s_inode == t_inode); in ocfs2_reflink_inodes_lock()
4717 lock_two_nondirectories(s_inode, t_inode); in ocfs2_reflink_inodes_lock()
4790 unlock_two_nondirectories(s_inode, t_inode); in ocfs2_reflink_inodes_lock()
4797 struct inode *t_inode, in ocfs2_reflink_inodes_unlock() argument
4803 if (s_inode != t_inode) { in ocfs2_reflink_inodes_unlock()
4804 ocfs2_inode_unlock(t_inode, 1); in ocfs2_reflink_inodes_unlock()
4805 ocfs2_rw_unlock(t_inode, 1); in ocfs2_reflink_inodes_unlock()
4808 unlock_two_nondirectories(s_inode, t_inode); in ocfs2_reflink_inodes_unlock()