• Home
  • Raw
  • Download

Lines Matching refs:blk

54 					ds->state->path.blk[level].blkno),  in xchk_da_process_error()
76 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt()
85 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() local
88 ASSERT(blk->magic == XFS_DA_NODE_MAGIC); in xchk_da_btree_node_entry()
90 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry()
91 return hdr.btree + blk->index; in xchk_da_btree_node_entry()
252 if (altpath->blk[level].bp) in xchk_da_btree_block_check_sibling()
253 xchk_buffer_recheck(ds->sc, altpath->blk[level].bp); in xchk_da_btree_block_check_sibling()
256 if (altpath->blk[level].blkno != sibling) in xchk_da_btree_block_check_sibling()
262 if (altpath->blk[plevel].bp == NULL || in xchk_da_btree_block_check_sibling()
264 altpath->blk[plevel].bp == path->blk[plevel].bp)) in xchk_da_btree_block_check_sibling()
267 xfs_trans_brelse(ds->dargs.trans, altpath->blk[plevel].bp); in xchk_da_btree_block_check_sibling()
268 altpath->blk[plevel].bp = NULL; in xchk_da_btree_block_check_sibling()
316 struct xfs_da_state_blk *blk; in xchk_da_btree_block() local
327 blk = &ds->state->path.blk[level]; in xchk_da_btree_block()
331 if (blk->bp) { in xchk_da_btree_block()
332 xfs_trans_brelse(dargs->trans, blk->bp); in xchk_da_btree_block()
333 blk->bp = NULL; in xchk_da_btree_block()
337 blk->blkno = blkno; in xchk_da_btree_block()
342 error = xfs_da_read_buf(dargs->trans, dargs->dp, blk->blkno, in xchk_da_btree_block()
343 XFS_DABUF_MAP_HOLE_OK, &blk->bp, dargs->whichfork, in xchk_da_btree_block()
347 if (blk->bp) in xchk_da_btree_block()
348 xchk_buffer_recheck(ds->sc, blk->bp); in xchk_da_btree_block()
356 blk->bp == NULL) in xchk_da_btree_block()
360 if (blk->bp == NULL) { in xchk_da_btree_block()
365 hdr3 = blk->bp->b_addr; in xchk_da_btree_block()
366 blk->magic = be16_to_cpu(hdr3->hdr.magic); in xchk_da_btree_block()
386 switch (blk->magic) { in xchk_da_btree_block()
389 xfs_trans_buf_set_type(dargs->trans, blk->bp, in xchk_da_btree_block()
391 blk->magic = XFS_ATTR_LEAF_MAGIC; in xchk_da_btree_block()
392 blk->hashval = xfs_attr_leaf_lasthash(blk->bp, pmaxrecs); in xchk_da_btree_block()
398 xfs_trans_buf_set_type(dargs->trans, blk->bp, in xchk_da_btree_block()
400 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xchk_da_btree_block()
401 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block()
407 xfs_trans_buf_set_type(dargs->trans, blk->bp, in xchk_da_btree_block()
409 blk->magic = XFS_DIR2_LEAF1_MAGIC; in xchk_da_btree_block()
410 blk->hashval = xfs_dir2_leaf_lasthash(ip, blk->bp, pmaxrecs); in xchk_da_btree_block()
416 xfs_trans_buf_set_type(dargs->trans, blk->bp, in xchk_da_btree_block()
418 blk->magic = XFS_DA_NODE_MAGIC; in xchk_da_btree_block()
419 node = blk->bp->b_addr; in xchk_da_btree_block()
423 blk->hashval = be32_to_cpu(btree[*pmaxrecs - 1].hashval); in xchk_da_btree_block()
452 if (be32_to_cpu(key->hashval) != blk->hashval) { in xchk_da_btree_block()
461 xfs_trans_brelse(dargs->trans, blk->bp); in xchk_da_btree_block()
462 blk->bp = NULL; in xchk_da_btree_block()
464 blk->blkno = 0; in xchk_da_btree_block()
512 blks = ds->state->path.blk; in xchk_da_btree()