Lines Matching defs:t_inode
3929 struct inode *t_inode,
3947 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh,
3957 spin_lock(&OCFS2_I(t_inode)->ip_lock);
3958 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL;
3959 t_di->i_dyn_features = cpu_to_le16(OCFS2_I(t_inode)->ip_dyn_features);
3960 spin_unlock(&OCFS2_I(t_inode)->ip_lock);
3971 struct inode *t_inode,
3983 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(t_inode), t_bh);
3997 ret = ocfs2_add_refcounted_extent(t_inode, &et,
4024 struct inode *t_inode,
4034 handle = ocfs2_start_trans(OCFS2_SB(t_inode->i_sb),
4042 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh,
4049 spin_lock(&OCFS2_I(t_inode)->ip_lock);
4050 OCFS2_I(t_inode)->ip_clusters = OCFS2_I(s_inode)->ip_clusters;
4051 OCFS2_I(t_inode)->ip_attr = OCFS2_I(s_inode)->ip_attr;
4052 OCFS2_I(t_inode)->ip_dyn_features = OCFS2_I(s_inode)->ip_dyn_features;
4053 spin_unlock(&OCFS2_I(t_inode)->ip_lock);
4054 i_size_write(t_inode, size);
4055 t_inode->i_blocks = s_inode->i_blocks;
4064 t_inode->i_uid = s_inode->i_uid;
4065 t_inode->i_gid = s_inode->i_gid;
4066 t_inode->i_mode = s_inode->i_mode;
4076 inode_set_ctime_current(t_inode);
4078 di->i_ctime = cpu_to_le64(inode_get_ctime(t_inode).tv_sec);
4079 di->i_ctime_nsec = cpu_to_le32(inode_get_ctime(t_inode).tv_nsec);
4081 t_inode->i_mtime = s_inode->i_mtime;
4089 ocfs2_commit_trans(OCFS2_SB(t_inode->i_sb), handle);
4095 struct inode *t_inode,
4108 ret = ocfs2_set_refcount_tree(t_inode, t_bh,
4117 t_inode, t_bh);
4130 ret = ocfs2_duplicate_extent_list(s_inode, t_inode, t_bh,
4472 /* Remap the range pos_in:len in s_inode to pos_out:len in t_inode. */
4476 struct inode *t_inode,
4497 ocfs2_init_dinode_extent_tree(&t_et, INODE_CACHE(t_inode), t_bh);
4500 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out);
4520 pstart = ocfs2_clusters_to_bytes(t_inode->i_sb, tpos);
4521 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters);
4522 ret = ocfs2_remove_inode_range(t_inode, t_bh, pstart, plen);
4555 ret = ocfs2_add_refcounted_extent(t_inode, &t_et,
4580 remapped_bytes = ocfs2_clusters_to_bytes(t_inode->i_sb, remapped_clus);
4586 /* Set up refcount tree and remap s_inode to t_inode. */
4590 struct inode *t_inode,
4611 i_size_read(t_inode) <= len &&
4613 ret = ocfs2_duplicate_inline_data(s_inode, s_bh, t_inode, t_bh);
4626 ocfs2_is_refcount_inode(t_inode) &&
4633 !ocfs2_is_refcount_inode(t_inode)) {
4650 if (!ocfs2_is_refcount_inode(t_inode)) {
4651 ret = ocfs2_set_refcount_tree(t_inode, t_bh,
4660 if (OCFS2_I(t_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) {
4661 ret = ocfs2_convert_inline_data_to_extents(t_inode, t_bh);
4669 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh,
4688 struct inode *t_inode,
4692 struct inode *inode2 = t_inode;
4697 bool same_inode = (s_inode == t_inode);
4702 lock_two_nondirectories(s_inode, t_inode);
4775 unlock_two_nondirectories(s_inode, t_inode);
4782 struct inode *t_inode,
4788 if (s_inode != t_inode) {
4789 ocfs2_inode_unlock(t_inode, 1);
4790 ocfs2_rw_unlock(t_inode, 1);
4793 unlock_two_nondirectories(s_inode, t_inode);