Lines Matching refs:bp
120 struct xfs_buf *bp) in xfs_attr3_rmt_read_verify() argument
122 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_read_verify()
132 ptr = bp->b_addr; in xfs_attr3_rmt_read_verify()
133 bno = bp->b_bn; in xfs_attr3_rmt_read_verify()
134 len = BBTOB(bp->b_length); in xfs_attr3_rmt_read_verify()
139 xfs_buf_ioerror(bp, -EFSBADCRC); in xfs_attr3_rmt_read_verify()
143 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_attr3_rmt_read_verify()
151 if (bp->b_error) in xfs_attr3_rmt_read_verify()
152 xfs_verifier_error(bp); in xfs_attr3_rmt_read_verify()
159 struct xfs_buf *bp) in xfs_attr3_rmt_write_verify() argument
161 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_write_verify()
171 ptr = bp->b_addr; in xfs_attr3_rmt_write_verify()
172 bno = bp->b_bn; in xfs_attr3_rmt_write_verify()
173 len = BBTOB(bp->b_length); in xfs_attr3_rmt_write_verify()
180 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_attr3_rmt_write_verify()
181 xfs_verifier_error(bp); in xfs_attr3_rmt_write_verify()
190 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_attr3_rmt_write_verify()
191 xfs_verifier_error(bp); in xfs_attr3_rmt_write_verify()
250 struct xfs_buf *bp, in xfs_attr_rmtval_copyout() argument
256 char *src = bp->b_addr; in xfs_attr_rmtval_copyout()
257 xfs_daddr_t bno = bp->b_bn; in xfs_attr_rmtval_copyout()
258 int len = BBTOB(bp->b_length); in xfs_attr_rmtval_copyout()
298 struct xfs_buf *bp, in xfs_attr_rmtval_copyin() argument
304 char *dst = bp->b_addr; in xfs_attr_rmtval_copyin()
305 xfs_daddr_t bno = bp->b_bn; in xfs_attr_rmtval_copyin()
306 int len = BBTOB(bp->b_length); in xfs_attr_rmtval_copyin()
354 struct xfs_buf *bp; in xfs_attr_rmtval_get() local
388 dblkno, dblkcnt, 0, &bp, in xfs_attr_rmtval_get()
393 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get()
396 xfs_buf_relse(bp); in xfs_attr_rmtval_get()
511 struct xfs_buf *bp; in xfs_attr_rmtval_set() local
531 bp = xfs_buf_get(mp->m_ddev_targp, dblkno, dblkcnt, 0); in xfs_attr_rmtval_set()
532 if (!bp) in xfs_attr_rmtval_set()
534 bp->b_ops = &xfs_attr3_rmt_buf_ops; in xfs_attr_rmtval_set()
536 xfs_attr_rmtval_copyin(mp, bp, args->dp->i_ino, &offset, in xfs_attr_rmtval_set()
539 error = xfs_bwrite(bp); /* GROT: NOTE: synchronous write */ in xfs_attr_rmtval_set()
540 xfs_buf_relse(bp); in xfs_attr_rmtval_set()
576 struct xfs_buf *bp; in xfs_attr_rmtval_remove() local
599 bp = xfs_incore(mp->m_ddev_targp, dblkno, dblkcnt, XBF_TRYLOCK); in xfs_attr_rmtval_remove()
600 if (bp) { in xfs_attr_rmtval_remove()
601 xfs_buf_stale(bp); in xfs_attr_rmtval_remove()
602 xfs_buf_relse(bp); in xfs_attr_rmtval_remove()
603 bp = NULL; in xfs_attr_rmtval_remove()