Lines Matching refs:bp
308 struct xfs_buf *bp; in xfs_get_aghdr_buf() local
311 error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0, &bp); in xfs_get_aghdr_buf()
315 bp->b_maps[0].bm_bn = blkno; in xfs_get_aghdr_buf()
316 bp->b_ops = ops; in xfs_get_aghdr_buf()
318 *bpp = bp; in xfs_get_aghdr_buf()
334 struct xfs_buf *bp, in xfs_btroot_init() argument
337 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init()
344 struct xfs_buf *bp, in xfs_freesp_init_recs() argument
348 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_freesp_init_recs()
350 arec = XFS_ALLOC_REC_ADDR(mp, XFS_BUF_TO_BLOCK(bp), 1); in xfs_freesp_init_recs()
401 struct xfs_buf *bp, in xfs_bnoroot_init() argument
404 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno); in xfs_bnoroot_init()
405 xfs_freesp_init_recs(mp, bp, id); in xfs_bnoroot_init()
411 struct xfs_buf *bp, in xfs_cntroot_init() argument
414 xfs_btree_init_block(mp, bp, XFS_BTNUM_CNT, 0, 1, id->agno); in xfs_cntroot_init()
415 xfs_freesp_init_recs(mp, bp, id); in xfs_cntroot_init()
424 struct xfs_buf *bp, in xfs_rmaproot_init() argument
427 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_rmaproot_init()
430 xfs_btree_init_block(mp, bp, XFS_BTNUM_RMAP, 0, 4, id->agno); in xfs_rmaproot_init()
503 struct xfs_buf *bp, in xfs_sbblock_init() argument
506 struct xfs_dsb *dsb = bp->b_addr; in xfs_sbblock_init()
515 struct xfs_buf *bp, in xfs_agfblock_init() argument
518 struct xfs_agf *agf = bp->b_addr; in xfs_agfblock_init()
563 struct xfs_buf *bp, in xfs_agflblock_init() argument
566 struct xfs_agfl *agfl = XFS_BUF_TO_AGFL(bp); in xfs_agflblock_init()
576 agfl_bno = xfs_buf_to_agfl_bno(bp); in xfs_agflblock_init()
584 struct xfs_buf *bp, in xfs_agiblock_init() argument
587 struct xfs_agi *agi = bp->b_addr; in xfs_agiblock_init()
615 typedef void (*aghdr_init_work_f)(struct xfs_mount *mp, struct xfs_buf *bp,
624 struct xfs_buf *bp; in xfs_ag_init_hdr() local
627 error = xfs_get_aghdr_buf(mp, id->daddr, id->numblks, &bp, ops); in xfs_ag_init_hdr()
631 (*work)(mp, bp, id); in xfs_ag_init_hdr()
633 xfs_buf_delwri_queue(bp, &id->buffer_list); in xfs_ag_init_hdr()
634 xfs_buf_relse(bp); in xfs_ag_init_hdr()
889 struct xfs_buf *bp; in xfs_ag_extend_space() local
897 error = xfs_ialloc_read_agi(mp, tp, id->agno, &bp); in xfs_ag_extend_space()
901 agi = bp->b_addr; in xfs_ag_extend_space()
905 xfs_ialloc_log_agi(tp, bp, XFS_AGI_LENGTH); in xfs_ag_extend_space()
910 error = xfs_alloc_read_agf(mp, tp, id->agno, 0, &bp); in xfs_ag_extend_space()
914 agf = bp->b_addr; in xfs_ag_extend_space()
917 xfs_alloc_log_agf(tp, bp, XFS_AGF_LENGTH); in xfs_ag_extend_space()
925 error = xfs_rmap_free(tp, bp, bp->b_pag, in xfs_ag_extend_space()