Lines Matching defs:t_inode
3958 struct inode *t_inode,
3976 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh,
3986 spin_lock(&OCFS2_I(t_inode)->ip_lock);
3987 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL;
3988 t_di->i_dyn_features = cpu_to_le16(OCFS2_I(t_inode)->ip_dyn_features);
3989 spin_unlock(&OCFS2_I(t_inode)->ip_lock);
4000 struct inode *t_inode,
4012 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(t_inode), t_bh);
4026 ret = ocfs2_add_refcounted_extent(t_inode, &et,
4053 struct inode *t_inode,
4063 handle = ocfs2_start_trans(OCFS2_SB(t_inode->i_sb),
4071 ret = ocfs2_journal_access_di(handle, INODE_CACHE(t_inode), t_bh,
4078 spin_lock(&OCFS2_I(t_inode)->ip_lock);
4079 OCFS2_I(t_inode)->ip_clusters = OCFS2_I(s_inode)->ip_clusters;
4080 OCFS2_I(t_inode)->ip_attr = OCFS2_I(s_inode)->ip_attr;
4081 OCFS2_I(t_inode)->ip_dyn_features = OCFS2_I(s_inode)->ip_dyn_features;
4082 spin_unlock(&OCFS2_I(t_inode)->ip_lock);
4083 i_size_write(t_inode, size);
4084 t_inode->i_blocks = s_inode->i_blocks;
4093 t_inode->i_uid = s_inode->i_uid;
4094 t_inode->i_gid = s_inode->i_gid;
4095 t_inode->i_mode = s_inode->i_mode;
4105 t_inode->i_ctime = current_time(t_inode);
4107 di->i_ctime = cpu_to_le64(t_inode->i_ctime.tv_sec);
4108 di->i_ctime_nsec = cpu_to_le32(t_inode->i_ctime.tv_nsec);
4110 t_inode->i_mtime = s_inode->i_mtime;
4118 ocfs2_commit_trans(OCFS2_SB(t_inode->i_sb), handle);
4124 struct inode *t_inode,
4137 ret = ocfs2_set_refcount_tree(t_inode, t_bh,
4146 t_inode, t_bh);
4159 ret = ocfs2_duplicate_extent_list(s_inode, t_inode, t_bh,
4501 /* Remap the range pos_in:len in s_inode to pos_out:len in t_inode. */
4505 struct inode *t_inode,
4526 ocfs2_init_dinode_extent_tree(&t_et, INODE_CACHE(t_inode), t_bh);
4529 tpos = ocfs2_bytes_to_clusters(t_inode->i_sb, pos_out);
4549 pstart = ocfs2_clusters_to_bytes(t_inode->i_sb, tpos);
4550 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters);
4551 ret = ocfs2_remove_inode_range(t_inode, t_bh, pstart, plen);
4584 ret = ocfs2_add_refcounted_extent(t_inode, &t_et,
4609 remapped_bytes = ocfs2_clusters_to_bytes(t_inode->i_sb, remapped_clus);
4615 /* Set up refcount tree and remap s_inode to t_inode. */
4619 struct inode *t_inode,
4640 i_size_read(t_inode) <= len &&
4642 ret = ocfs2_duplicate_inline_data(s_inode, s_bh, t_inode, t_bh);
4655 ocfs2_is_refcount_inode(t_inode) &&
4662 !ocfs2_is_refcount_inode(t_inode)) {
4679 if (!ocfs2_is_refcount_inode(t_inode)) {
4680 ret = ocfs2_set_refcount_tree(t_inode, t_bh,
4689 if (OCFS2_I(t_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) {
4690 ret = ocfs2_convert_inline_data_to_extents(t_inode, t_bh);
4698 ret = ocfs2_reflink_remap_extent(s_inode, s_bh, pos_in, t_inode, t_bh,
4717 struct inode *t_inode,
4721 struct inode *inode2 = t_inode;
4726 bool same_inode = (s_inode == t_inode);
4731 lock_two_nondirectories(s_inode, t_inode);
4804 unlock_two_nondirectories(s_inode, t_inode);
4811 struct inode *t_inode,
4817 if (s_inode != t_inode) {
4818 ocfs2_inode_unlock(t_inode, 1);
4819 ocfs2_rw_unlock(t_inode, 1);
4822 unlock_two_nondirectories(s_inode, t_inode);