Lines Matching refs:dp
35 struct xfs_inode *dp, in xfs_attr3_rmt_stale() argument
52 error = xfs_bmapi_read(dp, (xfs_fileoff_t)blkno, blkcnt, in xfs_attr3_rmt_stale()
56 if (XFS_IS_CORRUPT(dp->i_mount, nmap != 1)) in xfs_attr3_rmt_stale()
64 error = xfs_attr_rmtval_stale(dp, &map, 0); in xfs_attr3_rmt_stale()
84 struct xfs_inode *dp, in xfs_attr3_leaf_inactive() argument
112 blkcnt = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive()
114 error = xfs_attr3_rmt_stale(dp, in xfs_attr3_leaf_inactive()
132 struct xfs_inode *dp, in xfs_attr3_node_inactive() argument
136 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_node_inactive()
153 xfs_da3_node_hdr_from_disk(dp->i_mount, &ichdr, bp->b_addr); in xfs_attr3_node_inactive()
174 error = xfs_da3_node_read(*trans, dp, child_fsb, &child_bp, in xfs_attr3_node_inactive()
189 error = xfs_attr3_node_inactive(trans, dp, child_bp, in xfs_attr3_node_inactive()
194 error = xfs_attr3_leaf_inactive(trans, dp, child_bp); in xfs_attr3_node_inactive()
228 error = xfs_da3_node_read_mapped(*trans, dp, in xfs_attr3_node_inactive()
232 xfs_da3_node_hdr_from_disk(dp->i_mount, &phdr, in xfs_attr3_node_inactive()
240 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_node_inactive()
257 struct xfs_inode *dp) in xfs_attr3_root_inactive() argument
259 struct xfs_mount *mp = dp->i_mount; in xfs_attr3_root_inactive()
271 error = xfs_da3_node_read(*trans, dp, 0, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
284 error = xfs_attr3_node_inactive(trans, dp, bp, 1); in xfs_attr3_root_inactive()
288 error = xfs_attr3_leaf_inactive(trans, dp, bp); in xfs_attr3_root_inactive()
315 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_root_inactive()
330 struct xfs_inode *dp) in xfs_attr_inactive() argument
337 mp = dp->i_mount; in xfs_attr_inactive()
338 ASSERT(! XFS_NOT_DQATTACHED(mp, dp)); in xfs_attr_inactive()
340 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
341 if (!XFS_IFORK_Q(dp)) in xfs_attr_inactive()
343 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
352 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
354 if (!XFS_IFORK_Q(dp)) in xfs_attr_inactive()
361 xfs_trans_ijoin(trans, dp, 0); in xfs_attr_inactive()
369 if (xfs_inode_hasattr(dp) && in xfs_attr_inactive()
370 dp->i_afp->if_format != XFS_DINODE_FMT_LOCAL) { in xfs_attr_inactive()
371 error = xfs_attr3_root_inactive(&trans, dp); in xfs_attr_inactive()
375 error = xfs_itruncate_extents(&trans, dp, XFS_ATTR_FORK, 0); in xfs_attr_inactive()
381 xfs_attr_fork_remove(dp, trans); in xfs_attr_inactive()
384 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
391 if (dp->i_afp) { in xfs_attr_inactive()
392 xfs_idestroy_fork(dp->i_afp); in xfs_attr_inactive()
393 kmem_cache_free(xfs_ifork_zone, dp->i_afp); in xfs_attr_inactive()
394 dp->i_afp = NULL; in xfs_attr_inactive()
397 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()