/linux-4.4.14/fs/xfs/libxfs/ |
H A D | xfs_dir2_leaf.c | 386 struct xfs_buf *lbp; /* leaf block's buffer */ xfs_dir2_block_to_leaf() local 414 error = xfs_dir3_leaf_get_buf(args, ldb, &lbp, XFS_DIR2_LEAF1_MAGIC); xfs_dir2_block_to_leaf() 418 leaf = lbp->b_addr; xfs_dir2_block_to_leaf() 433 xfs_dir3_leaf_log_header(args, lbp); xfs_dir2_block_to_leaf() 440 xfs_dir3_leaf_log_ents(args, lbp, 0, leafhdr.count - 1); xfs_dir2_block_to_leaf() 476 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_block_to_leaf() 478 xfs_dir3_leaf_log_bests(args, lbp, 0, 0); xfs_dir2_block_to_leaf() 622 struct xfs_buf *lbp; /* leaf's buffer */ xfs_dir2_leaf_addname() local 645 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); xfs_dir2_leaf_addname() 655 index = xfs_dir2_leaf_search_hash(args, lbp); xfs_dir2_leaf_addname() 656 leaf = lbp->b_addr; xfs_dir2_leaf_addname() 732 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_addname() 738 error = xfs_dir2_leaf_to_node(args, lbp); xfs_dir2_leaf_addname() 756 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_addname() 764 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_addname() 795 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_addname() 802 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_addname() 814 xfs_dir3_leaf_log_tail(args, lbp); xfs_dir2_leaf_addname() 815 xfs_dir3_leaf_log_bests(args, lbp, 0, xfs_dir2_leaf_addname() 822 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); xfs_dir2_leaf_addname() 836 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_addname() 884 xfs_dir3_leaf_log_bests(args, lbp, use_block, use_block); xfs_dir2_leaf_addname() 901 xfs_dir3_leaf_log_header(args, lbp); xfs_dir2_leaf_addname() 902 xfs_dir3_leaf_log_ents(args, lbp, lfloglow, lfloghigh); xfs_dir2_leaf_addname() 903 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_addname() 1162 struct xfs_buf *lbp; /* leaf buffer */ xfs_dir2_leaf_lookup() local 1173 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { xfs_dir2_leaf_lookup() 1178 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_lookup() 1179 leaf = lbp->b_addr; xfs_dir2_leaf_lookup() 1199 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_lookup() 1222 struct xfs_buf *lbp; /* leaf buffer */ xfs_dir2_leaf_lookup_int() local 1237 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); xfs_dir2_leaf_lookup_int() 1241 *lbpp = lbp; xfs_dir2_leaf_lookup_int() 1242 leaf = lbp->b_addr; xfs_dir2_leaf_lookup_int() 1243 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_lookup_int() 1250 index = xfs_dir2_leaf_search_hash(args, lbp); xfs_dir2_leaf_lookup_int() 1279 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_lookup_int() 1321 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_lookup_int() 1334 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_lookup_int() 1354 struct xfs_buf *lbp; /* leaf buffer */ xfs_dir2_leaf_removename() local 1370 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { xfs_dir2_leaf_removename() 1374 leaf = lbp->b_addr; xfs_dir2_leaf_removename() 1403 xfs_dir3_leaf_log_header(args, lbp); xfs_dir2_leaf_removename() 1406 xfs_dir3_leaf_log_ents(args, lbp, index, index); xfs_dir2_leaf_removename() 1422 xfs_dir3_leaf_log_bests(args, lbp, db, db); xfs_dir2_leaf_removename() 1440 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_removename() 1463 xfs_dir3_leaf_log_tail(args, lbp); xfs_dir2_leaf_removename() 1464 xfs_dir3_leaf_log_bests(args, lbp, 0, xfs_dir2_leaf_removename() 1475 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_removename() 1479 return xfs_dir2_leaf_to_block(args, lbp, dbp); xfs_dir2_leaf_removename() 1494 struct xfs_buf *lbp; /* leaf buffer */ xfs_dir2_leaf_replace() local 1505 if ((error = xfs_dir2_leaf_lookup_int(args, &lbp, &index, &dbp))) { xfs_dir2_leaf_replace() 1509 leaf = lbp->b_addr; xfs_dir2_leaf_replace() 1529 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_replace() 1530 xfs_trans_brelse(tp, lbp); xfs_dir2_leaf_replace() 1535 * Return index in the leaf block (lbp) which is either the first 1542 struct xfs_buf *lbp) /* leaf buffer */ xfs_dir2_leaf_search_hash() 1554 leaf = lbp->b_addr; xfs_dir2_leaf_search_hash() 1596 struct xfs_buf *lbp, /* leaf buffer */ xfs_dir2_leaf_trim_data() 1617 leaf = lbp->b_addr; xfs_dir2_leaf_trim_data() 1647 xfs_dir3_leaf_log_tail(args, lbp); xfs_dir2_leaf_trim_data() 1648 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); xfs_dir2_leaf_trim_data() 1687 struct xfs_buf *lbp; /* buffer for leaf block */ xfs_dir2_node_to_leaf() local 1742 lbp = state->path.blk[0].bp; xfs_dir2_node_to_leaf() 1743 leaf = lbp->b_addr; xfs_dir2_node_to_leaf() 1773 xfs_dir3_leaf_compact(args, &leafhdr, lbp); xfs_dir2_node_to_leaf() 1775 lbp->b_ops = &xfs_dir3_leaf1_buf_ops; xfs_dir2_node_to_leaf() 1776 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAF1_BUF); xfs_dir2_node_to_leaf() 1794 xfs_dir3_leaf_log_header(args, lbp); xfs_dir2_node_to_leaf() 1795 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); xfs_dir2_node_to_leaf() 1796 xfs_dir3_leaf_log_tail(args, lbp); xfs_dir2_node_to_leaf() 1797 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_node_to_leaf() 1821 error = xfs_dir2_leaf_to_block(args, lbp, NULL); xfs_dir2_node_to_leaf() 1540 xfs_dir2_leaf_search_hash( xfs_da_args_t *args, struct xfs_buf *lbp) xfs_dir2_leaf_search_hash() argument 1594 xfs_dir2_leaf_trim_data( xfs_da_args_t *args, struct xfs_buf *lbp, xfs_dir2_db_t db) xfs_dir2_leaf_trim_data() argument
|
H A D | xfs_dir2_priv.h | 39 struct xfs_buf *lbp, struct xfs_buf *dbp); 82 struct xfs_buf *lbp); 84 struct xfs_buf *lbp, xfs_dir2_db_t db); 96 struct xfs_buf *lbp);
|
H A D | xfs_btree.c | 1987 struct xfs_buf *lbp; /* left buffer pointer */ xfs_btree_lshift() local 2028 error = xfs_btree_read_buf_block(cur, &lptr, 0, &left, &lbp); xfs_btree_lshift() 2072 xfs_btree_log_keys(cur, lbp, lrecs, lrecs); xfs_btree_lshift() 2073 xfs_btree_log_ptrs(cur, lbp, lrecs, lrecs); xfs_btree_lshift() 2085 xfs_btree_log_recs(cur, lbp, lrecs, lrecs); xfs_btree_lshift() 2092 xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS); xfs_btree_lshift() 2170 struct xfs_buf *lbp; /* left buffer pointer */ xfs_btree_rshift() local 2190 left = xfs_btree_get_block(cur, level, &lbp); xfs_btree_rshift() 2193 error = xfs_btree_check_block(cur, left, level, lbp); xfs_btree_rshift() 2290 xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS); xfs_btree_rshift() 2349 struct xfs_buf *lbp; /* left buffer pointer */ __xfs_btree_split() local 2371 left = xfs_btree_get_block(cur, level, &lbp); __xfs_btree_split() 2374 error = xfs_btree_check_block(cur, left, level, lbp); __xfs_btree_split() 2379 xfs_btree_buf_to_ptr(cur, lbp, &lptr); __xfs_btree_split() 2473 xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB); __xfs_btree_split() 2721 struct xfs_buf *lbp; /* left buffer pointer */ xfs_btree_new_root() local 2770 lbp = bp; xfs_btree_new_root() 2771 xfs_btree_buf_to_ptr(cur, lbp, &lptr); xfs_btree_new_root() 2784 error = xfs_btree_read_buf_block(cur, &lptr, 0, &left, &lbp); xfs_btree_new_root() 2787 bp = lbp; xfs_btree_new_root() 3376 struct xfs_buf *lbp; /* left buffer pointer */ xfs_btree_delrec() local 3680 left = xfs_btree_get_block(tcur, level, &lbp); xfs_btree_delrec() 3682 error = xfs_btree_check_block(cur, left, level, lbp); xfs_btree_delrec() 3736 error = xfs_btree_read_buf_block(cur, &lptr, 0, &left, &lbp); xfs_btree_delrec() 3752 lbp = bp; xfs_btree_delrec() 3797 xfs_btree_log_keys(cur, lbp, lrecs + 1, lrecs + rrecs); xfs_btree_delrec() 3798 xfs_btree_log_ptrs(cur, lbp, lrecs + 1, lrecs + rrecs); xfs_btree_delrec() 3808 xfs_btree_log_recs(cur, lbp, lrecs + 1, lrecs + rrecs); xfs_btree_delrec() 3820 xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB); xfs_btree_delrec() 3842 if (bp != lbp) { xfs_btree_delrec() 3843 cur->bc_bufs[level] = lbp; xfs_btree_delrec()
|
H A D | xfs_dir2_block.c | 904 struct xfs_buf *lbp, /* leaf buffer */ xfs_dir2_leaf_to_block() 933 leaf = lbp->b_addr; xfs_dir2_leaf_to_block() 954 xfs_dir2_leaf_trim_data(args, lbp, xfs_dir2_leaf_to_block() 1029 error = xfs_da_shrink_inode(args, args->geo->leafblk, lbp); xfs_dir2_leaf_to_block() 902 xfs_dir2_leaf_to_block( xfs_da_args_t *args, struct xfs_buf *lbp, struct xfs_buf *dbp) xfs_dir2_leaf_to_block() argument
|
H A D | xfs_dir2_node.c | 291 struct xfs_buf *lbp) /* leaf buffer */ xfs_dir2_leaf_to_node() 328 leaf = lbp->b_addr; xfs_dir2_leaf_to_node() 365 lbp->b_ops = &xfs_dir3_leafn_buf_ops; xfs_dir2_leaf_to_node() 366 xfs_trans_buf_set_type(tp, lbp, XFS_BLFT_DIR_LEAFN_BUF); xfs_dir2_leaf_to_node() 367 xfs_dir3_leaf_log_header(args, lbp); xfs_dir2_leaf_to_node() 368 xfs_dir3_leaf_check(dp, lbp); xfs_dir2_leaf_to_node() 289 xfs_dir2_leaf_to_node( xfs_da_args_t *args, struct xfs_buf *lbp) xfs_dir2_leaf_to_node() argument
|