Lines Matching refs:lbp
386 struct xfs_buf *lbp; /* leaf block's buffer */ in xfs_dir2_block_to_leaf() local
414 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_block_to_leaf()
418 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
433 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_block_to_leaf()
440 xfs_dir3_leaf_log_ents(args, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
476 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
478 xfs_dir3_leaf_log_bests(args, lbp, 0, 0); in xfs_dir2_block_to_leaf()
622 struct xfs_buf *lbp; /* leaf's buffer */ in xfs_dir2_leaf_addname() local
645 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_addname()
655 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_addname()
656 leaf = lbp->b_addr; in xfs_dir2_leaf_addname()
732 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
738 error = xfs_dir2_leaf_to_node(args, lbp); in xfs_dir2_leaf_addname()
756 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
764 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
795 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
802 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
814 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_addname()
815 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_addname()
822 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
836 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
884 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
901 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_addname()
902 xfs_dir3_leaf_log_ents(args, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
903 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
1162 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1173 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_lookup()
1178 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1179 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup()
1199 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1222 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1237 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1241 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1242 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1243 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1250 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1279 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1321 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1334 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1354 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1370 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_removename()
1374 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1403 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_removename()
1406 xfs_dir3_leaf_log_ents(args, lbp, index, index); in xfs_dir2_leaf_removename()
1422 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename()
1440 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1463 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_removename()
1464 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_removename()
1475 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1479 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1494 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1505 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_replace()
1509 leaf = lbp->b_addr; in xfs_dir2_leaf_replace()
1529 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1530 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1542 struct xfs_buf *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1554 leaf = lbp->b_addr; in xfs_dir2_leaf_search_hash()
1596 struct xfs_buf *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1617 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1647 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_trim_data()
1648 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1687 struct xfs_buf *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1742 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1743 leaf = lbp->b_addr; in xfs_dir2_node_to_leaf()
1773 xfs_dir3_leaf_compact(args, &leafhdr, lbp); in xfs_dir2_node_to_leaf()
1775 lbp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir2_node_to_leaf()
1776 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir2_node_to_leaf()
1794 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_node_to_leaf()
1795 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()
1796 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_node_to_leaf()
1797 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()
1821 error = xfs_dir2_leaf_to_block(args, lbp, NULL); in xfs_dir2_node_to_leaf()