Lines Matching refs:lbp

381 	struct xfs_buf		*lbp;		/* leaf block's buffer */  in xfs_dir2_block_to_leaf()  local
409 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_block_to_leaf()
413 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
428 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_block_to_leaf()
435 xfs_dir3_leaf_log_ents(args, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
471 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
473 xfs_dir3_leaf_log_bests(args, lbp, 0, 0); in xfs_dir2_block_to_leaf()
617 struct xfs_buf *lbp; /* leaf's buffer */ in xfs_dir2_leaf_addname() local
640 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &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()
879 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
896 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_addname()
897 xfs_dir3_leaf_log_ents(args, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
898 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
1157 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1168 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_lookup()
1173 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1174 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup()
1194 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1217 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1232 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1236 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1237 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1238 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1245 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1274 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1316 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1329 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1349 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1365 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_removename()
1369 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1398 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_removename()
1401 xfs_dir3_leaf_log_ents(args, lbp, index, index); in xfs_dir2_leaf_removename()
1417 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename()
1435 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1458 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_removename()
1459 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_removename()
1470 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1474 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1489 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1500 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { in xfs_dir2_leaf_replace()
1504 leaf = lbp->b_addr; in xfs_dir2_leaf_replace()
1524 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1525 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1537 struct xfs_buf *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1549 leaf = lbp->b_addr; in xfs_dir2_leaf_search_hash()
1591 struct xfs_buf *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1612 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1642 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_trim_data()
1643 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1682 struct xfs_buf *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1737 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1738 leaf = lbp->b_addr; in xfs_dir2_node_to_leaf()
1768 xfs_dir3_leaf_compact(args, &leafhdr, lbp); in xfs_dir2_node_to_leaf()
1770 lbp->b_ops = &xfs_dir3_leaf1_buf_ops; in xfs_dir2_node_to_leaf()
1771 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir2_node_to_leaf()
1789 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_node_to_leaf()
1790 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()
1791 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_node_to_leaf()
1792 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()
1816 error = xfs_dir2_leaf_to_block(args, lbp, NULL); in xfs_dir2_node_to_leaf()