Lines Matching refs:bp

69 static void xfs_dir2_block_log_leaf(xfs_trans_t *tp, xfs_dabuf_t *bp, int first,
71 static void xfs_dir2_block_log_tail(xfs_trans_t *tp, xfs_dabuf_t *bp);
86 xfs_dabuf_t *bp; /* buffer for block */ in xfs_dir2_block_addname() local
117 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_addname()
120 ASSERT(bp != NULL); in xfs_dir2_block_addname()
121 block = bp->data; in xfs_dir2_block_addname()
129 xfs_da_brelse(tp, bp); in xfs_dir2_block_addname()
232 xfs_da_brelse(tp, bp); in xfs_dir2_block_addname()
247 error = xfs_dir2_block_to_leaf(args, bp); in xfs_dir2_block_addname()
248 xfs_da_buf_done(bp); in xfs_dir2_block_addname()
288 xfs_dir2_data_make_free(tp, bp, in xfs_dir2_block_addname()
334 xfs_dir2_data_use_free(tp, bp, enddup, in xfs_dir2_block_addname()
415 xfs_dir2_block_log_leaf(tp, bp, lfloglow, lfloghigh); in xfs_dir2_block_addname()
419 xfs_dir2_data_use_free(tp, bp, dup, in xfs_dir2_block_addname()
437 xfs_dir2_data_log_header(tp, bp); in xfs_dir2_block_addname()
438 xfs_dir2_block_log_tail(tp, bp); in xfs_dir2_block_addname()
439 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_block_addname()
440 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_addname()
441 xfs_da_buf_done(bp); in xfs_dir2_block_addname()
458 xfs_dabuf_t *bp; /* buffer for block */ in xfs_dir2_block_getdents() local
481 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_getdents()
484 ASSERT(bp != NULL); in xfs_dir2_block_getdents()
490 block = bp->data; in xfs_dir2_block_getdents()
491 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_getdents()
551 xfs_da_brelse(tp, bp); in xfs_dir2_block_getdents()
565 xfs_da_brelse(tp, bp); in xfs_dir2_block_getdents()
576 xfs_dabuf_t *bp, /* block buffer */ in xfs_dir2_block_log_leaf() argument
586 block = bp->data; in xfs_dir2_block_log_leaf()
589 xfs_da_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)block), in xfs_dir2_block_log_leaf()
599 xfs_dabuf_t *bp) /* block buffer */ in xfs_dir2_block_log_tail() argument
606 block = bp->data; in xfs_dir2_block_log_tail()
608 xfs_da_log_buf(tp, bp, (uint)((char *)btp - (char *)block), in xfs_dir2_block_log_tail()
622 xfs_dabuf_t *bp; /* block buffer */ in xfs_dir2_block_lookup() local
635 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) in xfs_dir2_block_lookup()
639 block = bp->data; in xfs_dir2_block_lookup()
640 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_lookup()
652 xfs_da_brelse(args->trans, bp); in xfs_dir2_block_lookup()
668 xfs_dabuf_t *bp; /* block buffer */ in xfs_dir2_block_lookup_int() local
687 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_lookup_int()
690 ASSERT(bp != NULL); in xfs_dir2_block_lookup_int()
691 block = bp->data; in xfs_dir2_block_lookup_int()
692 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_lookup_int()
710 xfs_da_brelse(tp, bp); in xfs_dir2_block_lookup_int()
738 *bpp = bp; in xfs_dir2_block_lookup_int()
747 xfs_da_brelse(tp, bp); in xfs_dir2_block_lookup_int()
761 xfs_dabuf_t *bp; /* block buffer */ in xfs_dir2_block_removename() local
779 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_removename()
785 block = bp->data; in xfs_dir2_block_removename()
797 xfs_dir2_data_make_free(tp, bp, in xfs_dir2_block_removename()
804 xfs_dir2_block_log_tail(tp, bp); in xfs_dir2_block_removename()
809 xfs_dir2_block_log_leaf(tp, bp, ent, ent); in xfs_dir2_block_removename()
817 xfs_dir2_data_log_header(tp, bp); in xfs_dir2_block_removename()
818 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_removename()
824 xfs_da_buf_done(bp); in xfs_dir2_block_removename()
830 return xfs_dir2_block_to_sf(args, bp, size, &sfh); in xfs_dir2_block_removename()
843 xfs_dabuf_t *bp; /* block buffer */ in xfs_dir2_block_replace() local
856 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_replace()
861 block = bp->data; in xfs_dir2_block_replace()
874 xfs_dir2_data_log_entry(args->trans, bp, dep); in xfs_dir2_block_replace()
875 xfs_dir2_data_check(dp, bp); in xfs_dir2_block_replace()
876 xfs_da_buf_done(bp); in xfs_dir2_block_replace()
1050 xfs_dabuf_t *bp; /* block buffer */ in xfs_dir2_sf_to_block() local
1114 error = xfs_dir2_data_init(args, blkno, &bp); in xfs_dir2_sf_to_block()
1119 block = bp->data; in xfs_dir2_sf_to_block()
1132 xfs_dir2_data_use_free(tp, bp, dup, mp->m_dirblksize - i, i, &needlog, in xfs_dir2_sf_to_block()
1146 xfs_dir2_data_use_free(tp, bp, dup, in xfs_dir2_sf_to_block()
1159 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_sf_to_block()
1172 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_sf_to_block()
1206 xfs_dir2_data_log_unused(tp, bp, dup); in xfs_dir2_sf_to_block()
1222 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_sf_to_block()
1243 xfs_dir2_block_log_leaf(tp, bp, 0, INT_GET(btp->count, ARCH_CONVERT) - 1); in xfs_dir2_sf_to_block()
1244 xfs_dir2_block_log_tail(tp, bp); in xfs_dir2_sf_to_block()
1245 xfs_dir2_data_check(dp, bp); in xfs_dir2_sf_to_block()
1246 xfs_da_buf_done(bp); in xfs_dir2_sf_to_block()