Lines Matching refs:lbp
385 struct xfs_buf *lbp; /* leaf block's buffer */ in xfs_dir2_block_to_leaf() local
412 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_block_to_leaf()
416 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
430 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_block_to_leaf()
438 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
474 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
476 xfs_dir3_leaf_log_bests(args, lbp, 0, 0); in xfs_dir2_block_to_leaf()
613 struct xfs_buf *lbp; /* leaf's buffer */ in xfs_dir2_leaf_addname() local
640 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp); in xfs_dir2_leaf_addname()
650 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_addname()
651 leaf = lbp->b_addr; in xfs_dir2_leaf_addname()
727 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
733 error = xfs_dir2_leaf_to_node(args, lbp); in xfs_dir2_leaf_addname()
751 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
759 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
790 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
797 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
809 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_addname()
810 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_addname()
817 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
831 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
851 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
882 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
899 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_addname()
900 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
901 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
1158 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1168 error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp, &leafhdr); in xfs_dir2_leaf_lookup()
1174 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1194 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1218 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1231 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp); in xfs_dir2_leaf_lookup_int()
1235 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1236 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1237 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1243 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1273 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1315 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1328 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1349 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1364 error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp, &leafhdr); in xfs_dir2_leaf_removename()
1369 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1386 xfs_buf_mark_corrupt(lbp); in xfs_dir2_leaf_removename()
1401 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_removename()
1404 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, index, index); in xfs_dir2_leaf_removename()
1420 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename()
1438 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1461 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_removename()
1462 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_removename()
1473 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1477 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1492 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1502 error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp, &leafhdr); in xfs_dir2_leaf_replace()
1525 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1526 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1538 struct xfs_buf *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1548 xfs_dir2_leaf_hdr_from_disk(args->dp->i_mount, &leafhdr, lbp->b_addr); in xfs_dir2_leaf_search_hash()
1588 struct xfs_buf *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1609 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1640 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_trim_data()
1641 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1679 struct xfs_buf *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1734 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1735 leaf = lbp->b_addr; in xfs_dir2_node_to_leaf()
1764 xfs_dir3_leaf_compact(args, &leafhdr, lbp); in xfs_dir2_node_to_leaf()
1766 lbp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir2_node_to_leaf()
1767 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir2_node_to_leaf()
1785 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_node_to_leaf()
1786 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()
1787 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_node_to_leaf()
1788 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()
1812 error = xfs_dir2_leaf_to_block(args, lbp, NULL); in xfs_dir2_node_to_leaf()