Lines Matching refs:bp

1979 	xfs_buf_t	*bp,		/* allocation group header buffer */  in xfs_ialloc_log_agi()  argument
2004 agi = XFS_BUF_TO_AGI(bp); in xfs_ialloc_log_agi()
2008 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_AGI_BUF); in xfs_ialloc_log_agi()
2018 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2029 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2049 struct xfs_buf *bp) in xfs_agi_verify() argument
2051 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_verify()
2052 struct xfs_agi *agi = XFS_BUF_TO_AGI(bp); in xfs_agi_verify()
2073 if (bp->b_pag && be32_to_cpu(agi->agi_seqno) != bp->b_pag->pag_agno) in xfs_agi_verify()
2082 struct xfs_buf *bp) in xfs_agi_read_verify() argument
2084 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_read_verify()
2087 !xfs_buf_verify_cksum(bp, XFS_AGI_CRC_OFF)) in xfs_agi_read_verify()
2088 xfs_buf_ioerror(bp, -EFSBADCRC); in xfs_agi_read_verify()
2089 else if (XFS_TEST_ERROR(!xfs_agi_verify(bp), mp, in xfs_agi_read_verify()
2092 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_agi_read_verify()
2094 if (bp->b_error) in xfs_agi_read_verify()
2095 xfs_verifier_error(bp); in xfs_agi_read_verify()
2100 struct xfs_buf *bp) in xfs_agi_write_verify() argument
2102 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_write_verify()
2103 struct xfs_buf_log_item *bip = bp->b_fspriv; in xfs_agi_write_verify()
2105 if (!xfs_agi_verify(bp)) { in xfs_agi_write_verify()
2106 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_agi_write_verify()
2107 xfs_verifier_error(bp); in xfs_agi_write_verify()
2115 XFS_BUF_TO_AGI(bp)->agi_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agi_write_verify()
2116 xfs_buf_update_cksum(bp, XFS_AGI_CRC_OFF); in xfs_agi_write_verify()
2193 xfs_buf_t *bp = NULL; in xfs_ialloc_pagi_init() local
2196 error = xfs_ialloc_read_agi(mp, tp, agno, &bp); in xfs_ialloc_pagi_init()
2199 if (bp) in xfs_ialloc_pagi_init()
2200 xfs_trans_brelse(tp, bp); in xfs_ialloc_pagi_init()