Lines Matching refs:bp

609 	xfs_dabuf_t *bp;  in xfs_dir_leaf_addname()  local
611 retval = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_dir_leaf_addname()
615 ASSERT(bp != NULL); in xfs_dir_leaf_addname()
617 retval = xfs_dir_leaf_lookup_int(bp, args, &index); in xfs_dir_leaf_addname()
619 retval = xfs_dir_leaf_add(bp, args, index); in xfs_dir_leaf_addname()
620 xfs_da_buf_done(bp); in xfs_dir_leaf_addname()
633 xfs_dabuf_t *bp; in xfs_dir_leaf_removename() local
635 retval = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_dir_leaf_removename()
639 ASSERT(bp != NULL); in xfs_dir_leaf_removename()
640 leaf = bp->data; in xfs_dir_leaf_removename()
642 retval = xfs_dir_leaf_lookup_int(bp, args, &index); in xfs_dir_leaf_removename()
644 (void)xfs_dir_leaf_remove(args->trans, bp, index); in xfs_dir_leaf_removename()
649 xfs_da_buf_done(bp); in xfs_dir_leaf_removename()
661 xfs_dabuf_t *bp; in xfs_dir_leaf_lookup() local
663 retval = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_dir_leaf_lookup()
667 ASSERT(bp != NULL); in xfs_dir_leaf_lookup()
668 retval = xfs_dir_leaf_lookup_int(bp, args, &index); in xfs_dir_leaf_lookup()
669 xfs_da_brelse(args->trans, bp); in xfs_dir_leaf_lookup()
680 xfs_dabuf_t *bp; in xfs_dir_leaf_getdents() local
683 retval = xfs_da_read_buf(dp->i_transp, dp, 0, -1, &bp, XFS_DATA_FORK); in xfs_dir_leaf_getdents()
686 ASSERT(bp != NULL); in xfs_dir_leaf_getdents()
687 retval = xfs_dir_leaf_getdents_int(bp, dp, 0, uio, &eob, dbp, put, -1); in xfs_dir_leaf_getdents()
688 xfs_da_brelse(trans, bp); in xfs_dir_leaf_getdents()
701 xfs_dabuf_t *bp; in xfs_dir_leaf_replace() local
708 retval = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_dir_leaf_replace()
712 ASSERT(bp != NULL); in xfs_dir_leaf_replace()
713 retval = xfs_dir_leaf_lookup_int(bp, args, &index); in xfs_dir_leaf_replace()
715 leaf = bp->data; in xfs_dir_leaf_replace()
720 xfs_da_log_buf(args->trans, bp, in xfs_dir_leaf_replace()
722 xfs_da_buf_done(bp); in xfs_dir_leaf_replace()
725 xfs_da_brelse(args->trans, bp); in xfs_dir_leaf_replace()
768 retval = xfs_dir_leaf_add(blk->bp, args, blk->index); in xfs_dir_node_addname()
827 retval = xfs_dir_leaf_remove(args->trans, blk->bp, blk->index); in xfs_dir_node_removename()
873 xfs_da_brelse(args->trans, state->path.blk[i].bp); in xfs_dir_node_lookup()
874 state->path.blk[i].bp = NULL; in xfs_dir_node_lookup()
892 xfs_dabuf_t *bp; in xfs_dir_node_getdents() local
899 bp = NULL; in xfs_dir_node_getdents()
914 error = xfs_da_read_buf(trans, dp, bno, -2, &bp, XFS_DATA_FORK); in xfs_dir_node_getdents()
917 if (bp) in xfs_dir_node_getdents()
918 leaf = bp->data; in xfs_dir_node_getdents()
919 if (bp && INT_GET(leaf->hdr.info.magic, ARCH_CONVERT) != XFS_DIR_LEAF_MAGIC) { in xfs_dir_node_getdents()
922 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
923 bp = NULL; in xfs_dir_node_getdents()
925 if (bp && INT_GET(leaf->entries[0].hashval, ARCH_CONVERT) > cookhash) { in xfs_dir_node_getdents()
928 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
929 bp = NULL; in xfs_dir_node_getdents()
931 if (bp && in xfs_dir_node_getdents()
935 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
936 bp = NULL; in xfs_dir_node_getdents()
945 if (bp == NULL) { in xfs_dir_node_getdents()
949 error = xfs_da_read_buf(trans, dp, bno, -1, &bp, in xfs_dir_node_getdents()
953 if (bp == NULL) in xfs_dir_node_getdents()
955 node = bp->data; in xfs_dir_node_getdents()
967 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
977 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
988 leaf = bp->data; in xfs_dir_node_getdents()
991 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
1002 error = xfs_dir_leaf_getdents_int(bp, dp, bno, uio, &eob, dbp, in xfs_dir_node_getdents()
1004 xfs_da_brelse(trans, bp); in xfs_dir_node_getdents()
1013 error = xfs_da_read_buf(trans, dp, bno, nextda, &bp, in xfs_dir_node_getdents()
1017 if (unlikely(bp == NULL)) { in xfs_dir_node_getdents()
1042 xfs_dabuf_t *bp; in xfs_dir_node_replace() local
1063 bp = blk->bp; in xfs_dir_node_replace()
1064 leaf = bp->data; in xfs_dir_node_replace()
1069 xfs_da_log_buf(args->trans, bp, in xfs_dir_node_replace()
1071 xfs_da_buf_done(bp); in xfs_dir_node_replace()
1072 blk->bp = NULL; in xfs_dir_node_replace()
1076 xfs_da_brelse(args->trans, state->path.blk[i].bp); in xfs_dir_node_replace()
1077 state->path.blk[i].bp = NULL; in xfs_dir_node_replace()
1080 xfs_da_brelse(args->trans, state->path.blk[i].bp); in xfs_dir_node_replace()
1081 state->path.blk[i].bp = NULL; in xfs_dir_node_replace()