Lines Matching refs:dp
33 struct xfs_inode *dp, in xfs_attr3_leaf_freextent() argument
57 error = xfs_bmapi_read(dp, (xfs_fileoff_t)tblkno, tblkcnt, in xfs_attr3_leaf_freextent()
71 dblkno = XFS_FSB_TO_DADDR(dp->i_mount, in xfs_attr3_leaf_freextent()
73 dblkcnt = XFS_FSB_TO_BB(dp->i_mount, in xfs_attr3_leaf_freextent()
76 dp->i_mount->m_ddev_targp, in xfs_attr3_leaf_freextent()
84 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_leaf_freextent()
105 struct xfs_inode *dp, in xfs_attr3_leaf_inactive() argument
163 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
176 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive()
194 struct xfs_inode *dp, in xfs_attr3_node_inactive() argument
216 dp->d_ops->node_hdr_from_disk(&ichdr, node); in xfs_attr3_node_inactive()
222 btree = dp->d_ops->node_tree_p(node); in xfs_attr3_node_inactive()
238 error = xfs_da3_node_read(*trans, dp, child_fsb, -1, &child_bp, in xfs_attr3_node_inactive()
253 error = xfs_attr3_node_inactive(trans, dp, child_bp, in xfs_attr3_node_inactive()
258 error = xfs_attr3_leaf_inactive(trans, dp, child_bp); in xfs_attr3_node_inactive()
271 error = xfs_da_get_buf(*trans, dp, 0, child_blkno, &child_bp, in xfs_attr3_node_inactive()
282 error = xfs_da3_node_read(*trans, dp, 0, parent_blkno, in xfs_attr3_node_inactive()
287 btree = dp->d_ops->node_tree_p(node); in xfs_attr3_node_inactive()
294 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_node_inactive()
311 struct xfs_inode *dp) in xfs_attr3_root_inactive() argument
324 error = xfs_da3_node_read(*trans, dp, 0, -1, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
337 error = xfs_attr3_node_inactive(trans, dp, bp, 1); in xfs_attr3_root_inactive()
341 error = xfs_attr3_leaf_inactive(trans, dp, bp); in xfs_attr3_root_inactive()
354 error = xfs_da_get_buf(*trans, dp, 0, blkno, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
361 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_root_inactive()
376 struct xfs_inode *dp) in xfs_attr_inactive() argument
383 mp = dp->i_mount; in xfs_attr_inactive()
384 ASSERT(! XFS_NOT_DQATTACHED(mp, dp)); in xfs_attr_inactive()
386 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
387 if (!XFS_IFORK_Q(dp)) in xfs_attr_inactive()
389 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
398 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
400 if (!XFS_IFORK_Q(dp)) in xfs_attr_inactive()
407 xfs_trans_ijoin(trans, dp, 0); in xfs_attr_inactive()
415 if (xfs_inode_hasattr(dp) && in xfs_attr_inactive()
416 dp->i_d.di_aformat != XFS_DINODE_FMT_LOCAL) { in xfs_attr_inactive()
417 error = xfs_attr3_root_inactive(&trans, dp); in xfs_attr_inactive()
421 error = xfs_itruncate_extents(&trans, dp, XFS_ATTR_FORK, 0); in xfs_attr_inactive()
427 xfs_attr_fork_remove(dp, trans); in xfs_attr_inactive()
430 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
437 if (dp->i_afp) in xfs_attr_inactive()
438 xfs_idestroy_fork(dp, XFS_ATTR_FORK); in xfs_attr_inactive()
440 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()