Lines Matching refs:lbp
341 struct xfs_buf *lbp; /* leaf block's buffer */ in xfs_dir2_block_to_leaf() local
369 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_block_to_leaf()
373 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
388 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_block_to_leaf()
395 xfs_dir3_leaf_log_ents(args, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
431 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
433 xfs_dir3_leaf_log_bests(args, lbp, 0, 0); in xfs_dir2_block_to_leaf()
570 struct xfs_buf *lbp; /* leaf's buffer */ in xfs_dir2_leaf_addname() local
597 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_addname()
607 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_addname()
608 leaf = lbp->b_addr; in xfs_dir2_leaf_addname()
684 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
690 error = xfs_dir2_leaf_to_node(args, lbp); in xfs_dir2_leaf_addname()
708 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
716 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
747 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
754 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
766 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_addname()
767 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_addname()
774 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
788 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
808 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
839 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
856 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_addname()
857 xfs_dir3_leaf_log_ents(args, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
858 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
1117 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1128 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_lookup()
1133 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1134 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup()
1154 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1177 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1192 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1196 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1197 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1198 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1205 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1234 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1276 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1289 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1309 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1325 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_removename()
1329 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1359 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_removename()
1362 xfs_dir3_leaf_log_ents(args, lbp, index, index); in xfs_dir2_leaf_removename()
1378 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename()
1396 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1419 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_removename()
1420 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_removename()
1431 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1435 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1450 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1461 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_replace()
1465 leaf = lbp->b_addr; in xfs_dir2_leaf_replace()
1485 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1486 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1498 struct xfs_buf *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1510 leaf = lbp->b_addr; in xfs_dir2_leaf_search_hash()
1552 struct xfs_buf *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1573 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1603 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_trim_data()
1604 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1643 struct xfs_buf *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1698 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1699 leaf = lbp->b_addr; in xfs_dir2_node_to_leaf()
1729 xfs_dir3_leaf_compact(args, &leafhdr, lbp); in xfs_dir2_node_to_leaf()
1731 lbp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir2_node_to_leaf()
1732 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir2_node_to_leaf()
1750 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_node_to_leaf()
1751 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()
1752 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_node_to_leaf()
1753 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()
1777 error = xfs_dir2_leaf_to_block(args, lbp, NULL); in xfs_dir2_node_to_leaf()