Lines Matching refs:lbp

402 	struct xfs_buf		*lbp;		/* leaf block's buffer */  in xfs_dir2_block_to_leaf()  local
430 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_block_to_leaf()
434 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
449 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_block_to_leaf()
456 xfs_dir3_leaf_log_ents(args, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
492 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
494 xfs_dir3_leaf_log_bests(args, lbp, 0, 0); in xfs_dir2_block_to_leaf()
638 struct xfs_buf *lbp; /* leaf's buffer */ in xfs_dir2_leaf_addname() local
661 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_addname()
671 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_addname()
672 leaf = lbp->b_addr; in xfs_dir2_leaf_addname()
748 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
754 error = xfs_dir2_leaf_to_node(args, lbp); in xfs_dir2_leaf_addname()
772 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
780 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
811 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
818 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
830 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_addname()
831 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_addname()
838 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
852 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
872 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
903 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
920 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_addname()
921 xfs_dir3_leaf_log_ents(args, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
922 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
1181 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1192 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_lookup()
1197 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1198 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup()
1218 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1241 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1256 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1260 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1261 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1262 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1269 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1298 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1340 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1353 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1373 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1389 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_removename()
1393 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1423 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_removename()
1426 xfs_dir3_leaf_log_ents(args, lbp, index, index); in xfs_dir2_leaf_removename()
1442 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename()
1460 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1483 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_removename()
1484 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_removename()
1495 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1499 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1514 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1525 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_replace()
1529 leaf = lbp->b_addr; in xfs_dir2_leaf_replace()
1549 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1550 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1562 struct xfs_buf *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1574 leaf = lbp->b_addr; in xfs_dir2_leaf_search_hash()
1616 struct xfs_buf *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1637 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1667 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_trim_data()
1668 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1707 struct xfs_buf *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1762 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1763 leaf = lbp->b_addr; in xfs_dir2_node_to_leaf()
1793 xfs_dir3_leaf_compact(args, &leafhdr, lbp); in xfs_dir2_node_to_leaf()
1795 lbp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir2_node_to_leaf()
1796 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir2_node_to_leaf()
1814 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_node_to_leaf()
1815 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()
1816 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_node_to_leaf()
1817 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()
1841 error = xfs_dir2_leaf_to_block(args, lbp, NULL); in xfs_dir2_node_to_leaf()