Lines Matching refs:lbp
68 xfs_dabuf_t *lbp; /* leaf block's buffer */ in xfs_dir2_block_to_leaf() local
95 if ((error = xfs_dir2_leaf_init(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC))) { in xfs_dir2_block_to_leaf()
98 ASSERT(lbp != NULL); in xfs_dir2_block_to_leaf()
99 leaf = lbp->data; in xfs_dir2_block_to_leaf()
114 xfs_dir2_leaf_log_ents(tp, lbp, 0, be16_to_cpu(leaf->hdr.count) - 1); in xfs_dir2_block_to_leaf()
144 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
146 xfs_dir2_leaf_log_bests(tp, lbp, 0, 0); in xfs_dir2_block_to_leaf()
147 xfs_da_buf_done(lbp); in xfs_dir2_block_to_leaf()
295 xfs_dabuf_t *lbp; /* leaf's buffer */ in xfs_dir2_leaf_addname() local
319 error = xfs_da_read_buf(tp, dp, mp->m_dirleafblk, -1, &lbp, in xfs_dir2_leaf_addname()
324 ASSERT(lbp != NULL); in xfs_dir2_leaf_addname()
331 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_addname()
332 leaf = lbp->data; in xfs_dir2_leaf_addname()
406 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_addname()
412 error = xfs_dir2_leaf_to_node(args, lbp); in xfs_dir2_leaf_addname()
413 xfs_da_buf_done(lbp); in xfs_dir2_leaf_addname()
431 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_addname()
439 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_addname()
449 xfs_dir2_leaf_compact_x1(lbp, &index, &lowstale, &highstale, in xfs_dir2_leaf_addname()
470 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_addname()
477 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_addname()
489 xfs_dir2_leaf_log_tail(tp, lbp); in xfs_dir2_leaf_addname()
490 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
496 xfs_dir2_leaf_log_bests(tp, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
509 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_addname()
556 xfs_dir2_leaf_log_bests(tp, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
571 xfs_dir2_leaf_log_header(tp, lbp); in xfs_dir2_leaf_addname()
572 xfs_dir2_leaf_log_ents(tp, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
573 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
574 xfs_da_buf_done(lbp); in xfs_dir2_leaf_addname()
1282 xfs_dabuf_t *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1292 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_lookup()
1297 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1298 leaf = lbp->data; in xfs_dir2_leaf_lookup()
1315 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1338 xfs_dabuf_t *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1353 error = xfs_da_read_buf(tp, dp, mp->m_dirleafblk, -1, &lbp, in xfs_dir2_leaf_lookup_int()
1357 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1358 leaf = lbp->data; in xfs_dir2_leaf_lookup_int()
1359 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1363 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1391 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1433 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1446 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1466 xfs_dabuf_t *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1481 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_removename()
1487 leaf = lbp->data; in xfs_dir2_leaf_removename()
1512 xfs_dir2_leaf_log_header(tp, lbp); in xfs_dir2_leaf_removename()
1514 xfs_dir2_leaf_log_ents(tp, lbp, index, index); in xfs_dir2_leaf_removename()
1529 xfs_dir2_leaf_log_bests(tp, lbp, db, db); in xfs_dir2_leaf_removename()
1549 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1550 xfs_da_buf_done(lbp); in xfs_dir2_leaf_removename()
1573 xfs_dir2_leaf_log_tail(tp, lbp); in xfs_dir2_leaf_removename()
1574 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
1585 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1589 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1604 xfs_dabuf_t *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1614 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_replace()
1618 leaf = lbp->data; in xfs_dir2_leaf_replace()
1637 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1638 xfs_da_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1650 xfs_dabuf_t *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1660 leaf = lbp->data; in xfs_dir2_leaf_search_hash()
1703 xfs_dabuf_t *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1726 leaf = lbp->data; in xfs_dir2_leaf_trim_data()
1754 xfs_dir2_leaf_log_tail(tp, lbp); in xfs_dir2_leaf_trim_data()
1755 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1788 xfs_dabuf_t *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1841 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1842 leaf = lbp->data; in xfs_dir2_node_to_leaf()
1870 xfs_dir2_leaf_compact(args, lbp); in xfs_dir2_node_to_leaf()
1872 xfs_dir2_leaf_log_header(tp, lbp); in xfs_dir2_node_to_leaf()
1884 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()
1885 xfs_dir2_leaf_log_tail(tp, lbp); in xfs_dir2_node_to_leaf()
1886 xfs_dir2_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()
1907 error = xfs_dir2_leaf_to_block(args, lbp, NULL); in xfs_dir2_node_to_leaf()