Lines Matching refs:lbp

394 	struct xfs_buf		*lbp;		/* leaf block's buffer */  in xfs_dir2_block_to_leaf()  local
421 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_block_to_leaf()
425 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
439 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_block_to_leaf()
447 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
483 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
485 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
649 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp); in xfs_dir2_leaf_addname()
659 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_addname()
660 leaf = lbp->b_addr; in xfs_dir2_leaf_addname()
736 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
742 error = xfs_dir2_leaf_to_node(args, lbp); in xfs_dir2_leaf_addname()
760 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
768 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
799 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
806 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
818 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_addname()
819 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_addname()
826 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
840 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
860 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_addname()
891 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); in xfs_dir2_leaf_addname()
908 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_addname()
909 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, lfloglow, lfloghigh); in xfs_dir2_leaf_addname()
910 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
1167 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup() local
1177 error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp, &leafhdr); in xfs_dir2_leaf_lookup()
1183 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1203 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup()
1227 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_lookup_int() local
1240 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, &lbp); in xfs_dir2_leaf_lookup_int()
1244 *lbpp = lbp; in xfs_dir2_leaf_lookup_int()
1245 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1246 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1252 index = xfs_dir2_leaf_search_hash(args, lbp); in xfs_dir2_leaf_lookup_int()
1282 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1324 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1337 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_lookup_int()
1358 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_removename() local
1373 error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp, &leafhdr); in xfs_dir2_leaf_removename()
1378 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1395 xfs_buf_mark_corrupt(lbp); in xfs_dir2_leaf_removename()
1410 xfs_dir3_leaf_log_header(args, lbp); in xfs_dir2_leaf_removename()
1413 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, index, index); in xfs_dir2_leaf_removename()
1429 xfs_dir3_leaf_log_bests(args, lbp, db, db); in xfs_dir2_leaf_removename()
1447 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1470 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_removename()
1471 xfs_dir3_leaf_log_bests(args, lbp, 0, in xfs_dir2_leaf_removename()
1482 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1486 return xfs_dir2_leaf_to_block(args, lbp, dbp); in xfs_dir2_leaf_removename()
1501 struct xfs_buf *lbp; /* leaf buffer */ in xfs_dir2_leaf_replace() local
1511 error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp, &leafhdr); in xfs_dir2_leaf_replace()
1534 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1535 xfs_trans_brelse(tp, lbp); in xfs_dir2_leaf_replace()
1547 struct xfs_buf *lbp) /* leaf buffer */ in xfs_dir2_leaf_search_hash() argument
1557 xfs_dir2_leaf_hdr_from_disk(args->dp->i_mount, &leafhdr, lbp->b_addr); in xfs_dir2_leaf_search_hash()
1597 struct xfs_buf *lbp, /* leaf buffer */ in xfs_dir2_leaf_trim_data() argument
1618 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1649 xfs_dir3_leaf_log_tail(args, lbp); in xfs_dir2_leaf_trim_data()
1650 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1688 struct xfs_buf *lbp; /* buffer for leaf block */ in xfs_dir2_node_to_leaf() local
1743 lbp = state->path.blk[0].bp; in xfs_dir2_node_to_leaf()
1744 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()