Lines Matching refs:bp
223 struct xfs_buf *bp)
225 struct xfs_mount *mp = bp->b_target->bt_mount;
228 !xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length),
230 !xfs_foo_verify(bp)) {
231 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, bp->b_addr);
232 xfs_buf_ioerror(bp, EFSCORRUPTED);
246 struct xfs_buf *bp)
248 struct xfs_mount *mp = bp->b_target->bt_mount;
249 struct xfs_ondisk_hdr *hdr = bp->b_addr;
257 if (bp->b_bn != be64_to_cpu(hdr->blkno))
273 struct xfs_buf *bp)
275 struct xfs_mount *mp = bp->b_target->bt_mount;
276 struct xfs_ondisk_hdr *hdr = bp->b_addr;
281 if (bp->b_bn != be64_to_cpu(hdr->blkno))
298 struct xfs_buf *bp)
300 struct xfs_mount *mp = bp->b_target->bt_mount;
301 struct xfs_buf_log_item *bip = bp->b_fspriv;
303 if (!xfs_foo_verify(bp)) {
304 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, bp->b_addr);
305 xfs_buf_ioerror(bp, EFSCORRUPTED);
314 struct xfs_ondisk_hdr *hdr = bp->b_addr;
317 xfs_update_cksum(bp->b_addr, BBTOB(bp->b_length), XFS_FOO_CRC_OFF);