Lines Matching refs:dp

92 	state->mp = args->dp->i_mount;  in xfs_da_state_alloc()
130 state->mp = state->args->dp->i_mount; in xfs_da_state_reset()
402 struct xfs_inode *dp, in xfs_da3_node_set_type() argument
425 xfs_dirattr_mark_sick(dp, whichfork); in xfs_da3_node_set_type()
433 struct xfs_inode *dp, in xfs_da3_node_read() argument
440 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read()
444 return xfs_da3_node_set_type(tp, dp, whichfork, *bpp); in xfs_da3_node_read()
450 struct xfs_inode *dp, in xfs_da3_node_read_mapped() argument
455 struct xfs_mount *mp = dp->i_mount; in xfs_da3_node_read_mapped()
462 xfs_dirattr_mark_sick(dp, whichfork); in xfs_da3_node_read_mapped()
473 return xfs_da3_node_set_type(tp, dp, whichfork, *bpp); in xfs_da3_node_read_mapped()
516 struct xfs_inode *dp = args->dp; in xfs_da3_node_create() local
521 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create()
541 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &ichdr); in xfs_da3_node_create()
733 struct xfs_inode *dp; in xfs_da3_root_split() local
752 dp = args->dp; in xfs_da3_root_split()
754 error = xfs_da_get_buf(tp, dp, blkno, &bp, args->whichfork); in xfs_da3_root_split()
763 xfs_da3_node_hdr_from_disk(dp->i_mount, &icnodehdr, oldroot); in xfs_da3_root_split()
771 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split()
802 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
809 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
846 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_split() local
851 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
898 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
946 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_rebalance() local
952 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
953 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr2, node2); in xfs_da3_node_rebalance()
966 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
967 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr2, node2); in xfs_da3_node_rebalance()
1031 xfs_da3_node_hdr_to_disk(dp->i_mount, node1, &nodehdr1); in xfs_da3_node_rebalance()
1036 xfs_da3_node_hdr_to_disk(dp->i_mount, node2, &nodehdr2); in xfs_da3_node_rebalance()
1049 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
1050 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr2, node2); in xfs_da3_node_rebalance()
1079 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_add() local
1084 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_add()
1108 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_add()
1247 struct xfs_inode *dp = state->args->dp; in xfs_da3_root_join() local
1256 xfs_da3_node_hdr_from_disk(dp->i_mount, &oldroothdr, oldroot); in xfs_da3_root_join()
1272 error = xfs_da3_node_read(args->trans, dp, child, &bp, args->whichfork); in xfs_da3_root_join()
1323 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_toosmall() local
1335 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_toosmall()
1387 error = xfs_da3_node_read(state->args->trans, dp, blkno, &bp, in xfs_da3_node_toosmall()
1400 xfs_da3_node_hdr_from_disk(dp->i_mount, &thdr, node); in xfs_da3_node_toosmall()
1438 struct xfs_inode *dp, in xfs_da3_node_lasthash() argument
1444 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, bp->b_addr); in xfs_da3_node_lasthash()
1467 struct xfs_inode *dp = state->args->dp; in xfs_da3_fixhashpath() local
1480 lasthash = xfs_dir2_leaf_lasthash(dp, blk->bp, &count); in xfs_da3_fixhashpath()
1485 lasthash = xfs_da3_node_lasthash(dp, blk->bp, &count); in xfs_da3_fixhashpath()
1494 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_fixhashpath()
1521 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_remove() local
1526 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_remove()
1547 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_remove()
1576 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_unbalance() local
1582 xfs_da3_node_hdr_from_disk(dp->i_mount, &drop_hdr, drop_node); in xfs_da3_node_unbalance()
1583 xfs_da3_node_hdr_from_disk(dp->i_mount, &save_hdr, save_node); in xfs_da3_node_unbalance()
1619 xfs_da3_node_hdr_to_disk(dp->i_mount, save_node, &save_hdr); in xfs_da3_node_unbalance()
1667 struct xfs_inode *dp = state->args->dp; in xfs_da3_node_lookup_int() local
1683 error = xfs_da3_node_read(args->trans, args->dp, blkno, in xfs_da3_node_lookup_int()
1715 blk->hashval = xfs_dir2_leaf_lasthash(args->dp, in xfs_da3_node_lookup_int()
1739 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_lookup_int()
1806 if (XFS_IS_CORRUPT(dp->i_mount, blkno == args->geo->leafblk)) { in xfs_da3_node_lookup_int()
1812 if (XFS_IS_CORRUPT(dp->i_mount, expected_level != 0)) { in xfs_da3_node_lookup_int()
1864 struct xfs_inode *dp, in xfs_da3_node_order() argument
1877 xfs_da3_node_hdr_from_disk(dp->i_mount, &node1hdr, node1); in xfs_da3_node_order()
1878 xfs_da3_node_hdr_from_disk(dp->i_mount, &node2hdr, node2); in xfs_da3_node_order()
1908 struct xfs_inode *dp = state->args->dp; in xfs_da3_blk_link() local
1926 before = xfs_dir2_leafn_order(dp, old_blk->bp, new_blk->bp); in xfs_da3_blk_link()
1929 before = xfs_da3_node_order(dp, old_blk->bp, new_blk->bp); in xfs_da3_blk_link()
1944 error = xfs_da3_node_read(args->trans, dp, in xfs_da3_blk_link()
1972 error = xfs_da3_node_read(args->trans, dp, in xfs_da3_blk_link()
2039 error = xfs_da3_node_read(args->trans, args->dp, in xfs_da3_blk_unlink()
2063 error = xfs_da3_node_read(args->trans, args->dp, in xfs_da3_blk_unlink()
2115 struct xfs_inode *dp = state->args->dp; in xfs_da3_path_shift() local
2131 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2158 error = xfs_da3_node_read(args->trans, dp, blkno, &bp, in xfs_da3_path_shift()
2197 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2231 blk->hashval = xfs_dir2_leaf_lasthash(args->dp, in xfs_da3_path_shift()
2298 struct xfs_inode *dp = args->dp; in xfs_da_grow_inode_int() local
2300 xfs_rfsblock_t nblks = dp->i_nblocks; in xfs_da_grow_inode_int()
2307 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int()
2315 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int()
2331 error = xfs_bmapi_write(tp, dp, b, c, in xfs_da_grow_inode_int()
2357 args->total -= dp->i_nblocks - nblks; in xfs_da_grow_inode_int()
2407 struct xfs_inode *dp; in xfs_da3_swap_lastblock() local
2432 dp = args->dp; in xfs_da3_swap_lastblock()
2435 mp = dp->i_mount; in xfs_da3_swap_lastblock()
2437 error = xfs_bmap_last_before(tp, dp, &lastoff, w); in xfs_da3_swap_lastblock()
2448 error = xfs_da3_node_read(tp, dp, last_blkno, &last_buf, w); in xfs_da3_swap_lastblock()
2475 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock()
2484 xfs_da3_node_hdr_from_disk(dp->i_mount, &deadhdr, dead_node); in xfs_da3_swap_lastblock()
2494 error = xfs_da3_node_read(tp, dp, sib_blkno, &sib_buf, w); in xfs_da3_swap_lastblock()
2522 error = xfs_da3_node_read(tp, dp, sib_blkno, &sib_buf, w); in xfs_da3_swap_lastblock()
2552 error = xfs_da3_node_read(tp, dp, par_blkno, &par_buf, w); in xfs_da3_swap_lastblock()
2563 xfs_da3_node_hdr_from_disk(dp->i_mount, &par_hdr, par_node); in xfs_da3_swap_lastblock()
2608 error = xfs_da3_node_read(tp, dp, par_blkno, &par_buf, w); in xfs_da3_swap_lastblock()
2619 xfs_da3_node_hdr_from_disk(dp->i_mount, &par_hdr, par_node); in xfs_da3_swap_lastblock()
2656 struct xfs_inode *dp; in xfs_da_shrink_inode() local
2662 dp = args->dp; in xfs_da_shrink_inode()
2671 error = xfs_bunmapi(tp, dp, dead_blkno, count, in xfs_da_shrink_inode()
2690 struct xfs_inode *dp, in xfs_dabuf_map() argument
2697 struct xfs_mount *mp = dp->i_mount; in xfs_dabuf_map()
2709 error = xfs_bmapi_read(dp, bno, nfsb, irecs, &nirecs, in xfs_dabuf_map()
2752 xfs_dirattr_mark_sick(dp, whichfork); in xfs_dabuf_map()
2756 __func__, bno, dp->i_ino); in xfs_dabuf_map()
2779 struct xfs_inode *dp, in xfs_da_get_buf() argument
2784 struct xfs_mount *mp = dp->i_mount; in xfs_da_get_buf()
2791 error = xfs_dabuf_map(dp, bno, 0, whichfork, &mapp, &nmap); in xfs_da_get_buf()
2814 struct xfs_inode *dp, in xfs_da_read_buf() argument
2821 struct xfs_mount *mp = dp->i_mount; in xfs_da_read_buf()
2828 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_read_buf()
2835 xfs_dirattr_mark_sick(dp, whichfork); in xfs_da_read_buf()
2856 struct xfs_inode *dp, in xfs_da_reada_buf() argument
2869 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_reada_buf()
2873 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()