Lines Matching refs:bp
40 xfs_buf_t *bp) in xfs_inobp_check() argument
49 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in xfs_inobp_check()
54 i, (long long)bp->b_bn); in xfs_inobp_check()
77 struct xfs_buf *bp, in xfs_inode_buf_verify() argument
80 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_inode_buf_verify()
87 ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock; in xfs_inode_buf_verify()
92 dip = (struct xfs_dinode *)xfs_buf_offset(bp, in xfs_inode_buf_verify()
100 bp->b_flags &= ~XBF_DONE; in xfs_inode_buf_verify()
101 xfs_buf_ioerror(bp, -EIO); in xfs_inode_buf_verify()
105 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_inode_buf_verify()
106 xfs_verifier_error(bp); in xfs_inode_buf_verify()
110 (unsigned long long)bp->b_bn, i, in xfs_inode_buf_verify()
115 xfs_inobp_check(mp, bp); in xfs_inode_buf_verify()
121 struct xfs_buf *bp) in xfs_inode_buf_read_verify() argument
123 xfs_inode_buf_verify(bp, false); in xfs_inode_buf_read_verify()
128 struct xfs_buf *bp) in xfs_inode_buf_readahead_verify() argument
130 xfs_inode_buf_verify(bp, true); in xfs_inode_buf_readahead_verify()
135 struct xfs_buf *bp) in xfs_inode_buf_write_verify() argument
137 xfs_inode_buf_verify(bp, false); in xfs_inode_buf_write_verify()
170 struct xfs_buf *bp; in xfs_imap_to_bp() local
175 (int)imap->im_len, buf_flags, &bp, in xfs_imap_to_bp()
192 *bpp = bp; in xfs_imap_to_bp()
193 *dipp = (struct xfs_dinode *)xfs_buf_offset(bp, imap->im_boffset); in xfs_imap_to_bp()
353 xfs_buf_t *bp; in xfs_iread() local
384 error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &bp, 0, iget_flags); in xfs_iread()
463 xfs_buf_set_ref(bp, XFS_INO_REF); in xfs_iread()
478 xfs_trans_brelse(tp, bp); in xfs_iread()