Lines Matching refs:dp
48 static void xfs_dir2_leaf_check(xfs_inode_t *dp, xfs_dabuf_t *bp);
50 #define xfs_dir2_leaf_check(dp, bp) argument
72 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_leaf() local
84 dp = args->dp; in xfs_dir2_block_to_leaf()
85 mp = dp->i_mount; in xfs_dir2_block_to_leaf()
106 xfs_dir2_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
149 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
150 xfs_dir2_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
168 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_addname() local
192 dp = args->dp; in xfs_dir2_leaf_addname()
194 mp = dp->i_mount; in xfs_dir2_leaf_addname()
198 error = xfs_da_read_buf(tp, dp, mp->m_dirleafblk, -1, &lbp, in xfs_dir2_leaf_addname()
382 xfs_da_read_buf(tp, dp, xfs_dir2_db_to_da(mp, use_block), in xfs_dir2_leaf_addname()
390 xfs_dir2_data_check(dp, dbp); in xfs_dir2_leaf_addname()
540 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
542 xfs_dir2_data_check(dp, dbp); in xfs_dir2_leaf_addname()
554 xfs_inode_t *dp, /* incore directory inode */ in xfs_dir2_leaf_check() argument
564 mp = dp->i_mount; in xfs_dir2_leaf_check()
753 xfs_inode_t *dp, /* incore directory inode */ in xfs_dir2_leaf_getdents() argument
792 mp = dp->i_mount; in xfs_dir2_leaf_getdents()
871 error = xfs_bmapi(NULL, dp, in xfs_dir2_leaf_getdents()
934 error = xfs_da_read_buf(NULL, dp, map->br_startoff, in xfs_dir2_leaf_getdents()
977 (void)xfs_da_reada_buf(NULL, dp, in xfs_dir2_leaf_getdents()
1022 xfs_dir2_data_check(dp, bp); in xfs_dir2_leaf_getdents()
1131 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_init() local
1138 dp = args->dp; in xfs_dir2_leaf_init()
1139 ASSERT(dp != NULL); in xfs_dir2_leaf_init()
1141 mp = dp->i_mount; in xfs_dir2_leaf_init()
1147 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(mp, bno), -1, &bp, in xfs_dir2_leaf_init()
1272 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_lookup() local
1288 dp = args->dp; in xfs_dir2_leaf_lookup()
1289 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1300 xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address))); in xfs_dir2_leaf_lookup()
1327 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_lookup_int() local
1339 dp = args->dp; in xfs_dir2_leaf_lookup_int()
1341 mp = dp->i_mount; in xfs_dir2_leaf_lookup_int()
1345 error = xfs_da_read_buf(tp, dp, mp->m_dirleafblk, -1, &lbp, in xfs_dir2_leaf_lookup_int()
1351 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1379 error = xfs_da_read_buf(tp, dp, in xfs_dir2_leaf_lookup_int()
1386 xfs_dir2_data_check(dp, dbp); in xfs_dir2_leaf_lookup_int()
1421 error = xfs_da_read_buf(tp, dp, in xfs_dir2_leaf_lookup_int()
1454 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_removename() local
1475 dp = args->dp; in xfs_dir2_leaf_removename()
1477 mp = dp->i_mount; in xfs_dir2_leaf_removename()
1480 xfs_dir2_data_check(dp, dbp); in xfs_dir2_leaf_removename()
1522 xfs_dir2_data_check(dp, dbp); in xfs_dir2_leaf_removename()
1540 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1576 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1592 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_replace() local
1607 dp = args->dp; in xfs_dir2_leaf_replace()
1618 xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address))); in xfs_dir2_leaf_replace()
1627 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1701 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_trim_data() local
1708 dp = args->dp; in xfs_dir2_leaf_trim_data()
1709 mp = dp->i_mount; in xfs_dir2_leaf_trim_data()
1714 if ((error = xfs_da_read_buf(tp, dp, xfs_dir2_db_to_da(mp, db), -1, &dbp, in xfs_dir2_leaf_trim_data()
1761 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_node_to_leaf() local
1782 dp = args->dp; in xfs_dir2_node_to_leaf()
1787 if ((error = xfs_bmap_last_offset(tp, dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
1809 if ((error = xfs_bmap_last_before(tp, dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
1823 if ((error = xfs_da_read_buf(tp, dp, mp->m_dirfreeblk, -1, &fbp, in xfs_dir2_node_to_leaf()
1863 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()