Lines Matching refs:dp
89 state->mp = args->dp->i_mount; in xfs_da_state_alloc()
371 struct xfs_inode *dp, in xfs_da3_node_read() argument
378 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read()
388 struct xfs_inode *dp, in xfs_da3_node_read_mapped() argument
393 struct xfs_mount *mp = dp->i_mount; in xfs_da3_node_read_mapped()
433 struct xfs_inode *dp = args->dp; in xfs_da3_node_create() local
438 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create()
451 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create()
458 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &ichdr); in xfs_da3_node_create()
644 struct xfs_inode *dp; in xfs_da3_root_split() local
663 dp = args->dp; in xfs_da3_root_split()
665 error = xfs_da_get_buf(tp, dp, blkno, &bp, args->whichfork); in xfs_da3_root_split()
674 xfs_da3_node_hdr_from_disk(dp->i_mount, &icnodehdr, oldroot); in xfs_da3_root_split()
688 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split()
733 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
740 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
777 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_split() local
782 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
829 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
878 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_rebalance() local
884 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
885 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr2, node2); in xfs_da3_node_rebalance()
900 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
901 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr2, node2); in xfs_da3_node_rebalance()
965 xfs_da3_node_hdr_to_disk(dp->i_mount, node1, &nodehdr1); in xfs_da3_node_rebalance()
970 xfs_da3_node_hdr_to_disk(dp->i_mount, node2, &nodehdr2); in xfs_da3_node_rebalance()
983 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
984 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr2, node2); in xfs_da3_node_rebalance()
1013 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_add() local
1018 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_add()
1042 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_add()
1181 struct xfs_inode *dp = state->args->dp; in xfs_da3_root_join() local
1189 xfs_da3_node_hdr_from_disk(dp->i_mount, &oldroothdr, oldroot); in xfs_da3_root_join()
1205 error = xfs_da3_node_read(args->trans, dp, child, &bp, args->whichfork); in xfs_da3_root_join()
1255 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_toosmall() local
1267 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_toosmall()
1319 error = xfs_da3_node_read(state->args->trans, dp, blkno, &bp, in xfs_da3_node_toosmall()
1325 xfs_da3_node_hdr_from_disk(dp->i_mount, &thdr, node); in xfs_da3_node_toosmall()
1363 struct xfs_inode *dp, in xfs_da3_node_lasthash() argument
1369 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, bp->b_addr); in xfs_da3_node_lasthash()
1392 struct xfs_inode *dp = state->args->dp; in xfs_da3_fixhashpath() local
1405 lasthash = xfs_dir2_leaf_lasthash(dp, blk->bp, &count); in xfs_da3_fixhashpath()
1410 lasthash = xfs_da3_node_lasthash(dp, blk->bp, &count); in xfs_da3_fixhashpath()
1419 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_fixhashpath()
1446 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_remove() local
1451 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_remove()
1472 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_remove()
1501 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_unbalance() local
1507 xfs_da3_node_hdr_from_disk(dp->i_mount, &drop_hdr, drop_node); in xfs_da3_node_unbalance()
1508 xfs_da3_node_hdr_from_disk(dp->i_mount, &save_hdr, save_node); in xfs_da3_node_unbalance()
1544 xfs_da3_node_hdr_to_disk(dp->i_mount, save_node, &save_hdr); in xfs_da3_node_unbalance()
1591 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_lookup_int() local
1607 error = xfs_da3_node_read(args->trans, args->dp, blkno, in xfs_da3_node_lookup_int()
1627 blk->hashval = xfs_dir2_leaf_lasthash(args->dp, in xfs_da3_node_lookup_int()
1643 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_lookup_int()
1708 if (XFS_IS_CORRUPT(dp->i_mount, blkno == args->geo->leafblk)) in xfs_da3_node_lookup_int()
1712 if (XFS_IS_CORRUPT(dp->i_mount, expected_level != 0)) in xfs_da3_node_lookup_int()
1761 struct xfs_inode *dp, in xfs_da3_node_order() argument
1774 xfs_da3_node_hdr_from_disk(dp->i_mount, &node1hdr, node1); in xfs_da3_node_order()
1775 xfs_da3_node_hdr_from_disk(dp->i_mount, &node2hdr, node2); in xfs_da3_node_order()
1804 struct xfs_inode *dp = state->args->dp; in xfs_da3_blk_link() local
1822 before = xfs_dir2_leafn_order(dp, old_blk->bp, new_blk->bp); in xfs_da3_blk_link()
1825 before = xfs_da3_node_order(dp, old_blk->bp, new_blk->bp); in xfs_da3_blk_link()
1840 error = xfs_da3_node_read(args->trans, dp, in xfs_da3_blk_link()
1861 error = xfs_da3_node_read(args->trans, dp, in xfs_da3_blk_link()
1920 error = xfs_da3_node_read(args->trans, args->dp, in xfs_da3_blk_unlink()
1937 error = xfs_da3_node_read(args->trans, args->dp, in xfs_da3_blk_unlink()
1981 struct xfs_inode *dp = state->args->dp; in xfs_da3_path_shift() local
1997 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2024 error = xfs_da3_node_read(args->trans, dp, blkno, &bp, in xfs_da3_path_shift()
2057 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2079 blk->hashval = xfs_dir2_leaf_lasthash(args->dp, in xfs_da3_path_shift()
2146 struct xfs_inode *dp = args->dp; in xfs_da_grow_inode_int() local
2148 xfs_rfsblock_t nblks = dp->i_d.di_nblocks; in xfs_da_grow_inode_int()
2155 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int()
2163 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int()
2185 error = xfs_bmapi_write(tp, dp, b, c, in xfs_da_grow_inode_int()
2214 args->total -= dp->i_d.di_nblocks - nblks; in xfs_da_grow_inode_int()
2264 struct xfs_inode *dp; in xfs_da3_swap_lastblock() local
2288 dp = args->dp; in xfs_da3_swap_lastblock()
2291 mp = dp->i_mount; in xfs_da3_swap_lastblock()
2293 error = xfs_bmap_last_before(tp, dp, &lastoff, w); in xfs_da3_swap_lastblock()
2302 error = xfs_da3_node_read(tp, dp, last_blkno, &last_buf, w); in xfs_da3_swap_lastblock()
2320 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock()
2329 xfs_da3_node_hdr_from_disk(dp->i_mount, &deadhdr, dead_node); in xfs_da3_swap_lastblock()
2339 error = xfs_da3_node_read(tp, dp, sib_blkno, &sib_buf, w); in xfs_da3_swap_lastblock()
2359 error = xfs_da3_node_read(tp, dp, sib_blkno, &sib_buf, w); in xfs_da3_swap_lastblock()
2381 error = xfs_da3_node_read(tp, dp, par_blkno, &par_buf, w); in xfs_da3_swap_lastblock()
2385 xfs_da3_node_hdr_from_disk(dp->i_mount, &par_hdr, par_node); in xfs_da3_swap_lastblock()
2427 error = xfs_da3_node_read(tp, dp, par_blkno, &par_buf, w); in xfs_da3_swap_lastblock()
2431 xfs_da3_node_hdr_from_disk(dp->i_mount, &par_hdr, par_node); in xfs_da3_swap_lastblock()
2467 struct xfs_inode *dp; in xfs_da_shrink_inode() local
2473 dp = args->dp; in xfs_da_shrink_inode()
2482 error = xfs_bunmapi(tp, dp, dead_blkno, count, in xfs_da_shrink_inode()
2501 struct xfs_inode *dp, in xfs_dabuf_map() argument
2508 struct xfs_mount *mp = dp->i_mount; in xfs_dabuf_map()
2519 error = xfs_bmapi_read(dp, bno, nfsb, irecs, &nirecs, in xfs_dabuf_map()
2564 __func__, bno, dp->i_ino); in xfs_dabuf_map()
2587 struct xfs_inode *dp, in xfs_da_get_buf() argument
2592 struct xfs_mount *mp = dp->i_mount; in xfs_da_get_buf()
2599 error = xfs_dabuf_map(dp, bno, 0, whichfork, &mapp, &nmap); in xfs_da_get_buf()
2622 struct xfs_inode *dp, in xfs_da_read_buf() argument
2629 struct xfs_mount *mp = dp->i_mount; in xfs_da_read_buf()
2636 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_read_buf()
2662 struct xfs_inode *dp, in xfs_da_reada_buf() argument
2675 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_reada_buf()
2679 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()