Lines Matching refs:bp
77 struct xfs_buf *bp, in _xfs_trans_bjoin() argument
82 ASSERT(bp->b_transp == NULL); in _xfs_trans_bjoin()
89 xfs_buf_item_init(bp, tp->t_mountp); in _xfs_trans_bjoin()
90 bip = bp->b_fspriv; in _xfs_trans_bjoin()
111 bp->b_transp = tp; in _xfs_trans_bjoin()
118 struct xfs_buf *bp) in xfs_trans_bjoin() argument
120 _xfs_trans_bjoin(tp, bp, 0); in xfs_trans_bjoin()
121 trace_xfs_trans_bjoin(bp->b_fspriv); in xfs_trans_bjoin()
141 xfs_buf_t *bp; in xfs_trans_get_buf_map() local
153 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map()
154 if (bp != NULL) { in xfs_trans_get_buf_map()
155 ASSERT(xfs_buf_islocked(bp)); in xfs_trans_get_buf_map()
157 xfs_buf_stale(bp); in xfs_trans_get_buf_map()
158 XFS_BUF_DONE(bp); in xfs_trans_get_buf_map()
161 ASSERT(bp->b_transp == tp); in xfs_trans_get_buf_map()
162 bip = bp->b_fspriv; in xfs_trans_get_buf_map()
167 return bp; in xfs_trans_get_buf_map()
170 bp = xfs_buf_get_map(target, map, nmaps, flags); in xfs_trans_get_buf_map()
171 if (bp == NULL) { in xfs_trans_get_buf_map()
175 ASSERT(!bp->b_error); in xfs_trans_get_buf_map()
177 _xfs_trans_bjoin(tp, bp, 1); in xfs_trans_get_buf_map()
178 trace_xfs_trans_get_buf(bp->b_fspriv); in xfs_trans_get_buf_map()
179 return bp; in xfs_trans_get_buf_map()
195 xfs_buf_t *bp; in xfs_trans_getsb() local
211 bp = mp->m_sb_bp; in xfs_trans_getsb()
212 if (bp->b_transp == tp) { in xfs_trans_getsb()
213 bip = bp->b_fspriv; in xfs_trans_getsb()
218 return bp; in xfs_trans_getsb()
221 bp = xfs_getsb(mp, flags); in xfs_trans_getsb()
222 if (bp == NULL) in xfs_trans_getsb()
225 _xfs_trans_bjoin(tp, bp, 1); in xfs_trans_getsb()
226 trace_xfs_trans_getsb(bp->b_fspriv); in xfs_trans_getsb()
227 return bp; in xfs_trans_getsb()
251 struct xfs_buf *bp = NULL; in xfs_trans_read_buf_map() local
265 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map()
266 if (bp) { in xfs_trans_read_buf_map()
267 ASSERT(xfs_buf_islocked(bp)); in xfs_trans_read_buf_map()
268 ASSERT(bp->b_transp == tp); in xfs_trans_read_buf_map()
269 ASSERT(bp->b_fspriv != NULL); in xfs_trans_read_buf_map()
270 ASSERT(!bp->b_error); in xfs_trans_read_buf_map()
271 ASSERT(bp->b_flags & XBF_DONE); in xfs_trans_read_buf_map()
278 trace_xfs_trans_read_buf_shut(bp, _RET_IP_); in xfs_trans_read_buf_map()
282 bip = bp->b_fspriv; in xfs_trans_read_buf_map()
287 *bpp = bp; in xfs_trans_read_buf_map()
291 bp = xfs_buf_read_map(target, map, nmaps, flags, ops); in xfs_trans_read_buf_map()
292 if (!bp) { in xfs_trans_read_buf_map()
307 if (bp->b_error) { in xfs_trans_read_buf_map()
308 error = bp->b_error; in xfs_trans_read_buf_map()
310 xfs_buf_ioerror_alert(bp, __func__); in xfs_trans_read_buf_map()
311 bp->b_flags &= ~XBF_DONE; in xfs_trans_read_buf_map()
312 xfs_buf_stale(bp); in xfs_trans_read_buf_map()
316 xfs_buf_relse(bp); in xfs_trans_read_buf_map()
325 xfs_buf_relse(bp); in xfs_trans_read_buf_map()
326 trace_xfs_trans_read_buf_shut(bp, _RET_IP_); in xfs_trans_read_buf_map()
331 _xfs_trans_bjoin(tp, bp, 1); in xfs_trans_read_buf_map()
332 trace_xfs_trans_read_buf(bp->b_fspriv); in xfs_trans_read_buf_map()
334 *bpp = bp; in xfs_trans_read_buf_map()
356 xfs_buf_t *bp) in xfs_trans_brelse() argument
364 ASSERT(bp->b_transp == NULL); in xfs_trans_brelse()
365 xfs_buf_relse(bp); in xfs_trans_brelse()
369 ASSERT(bp->b_transp == tp); in xfs_trans_brelse()
370 bip = bp->b_fspriv; in xfs_trans_brelse()
438 xfs_buf_item_relse(bp); in xfs_trans_brelse()
441 bp->b_transp = NULL; in xfs_trans_brelse()
442 xfs_buf_relse(bp); in xfs_trans_brelse()
453 xfs_buf_t *bp) in xfs_trans_bhold() argument
455 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_bhold()
457 ASSERT(bp->b_transp == tp); in xfs_trans_bhold()
473 xfs_buf_t *bp) in xfs_trans_bhold_release() argument
475 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_bhold_release()
477 ASSERT(bp->b_transp == tp); in xfs_trans_bhold_release()
499 xfs_buf_t *bp, in xfs_trans_log_buf() argument
503 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_log_buf()
505 ASSERT(bp->b_transp == tp); in xfs_trans_log_buf()
507 ASSERT(first <= last && last < BBTOB(bp->b_length)); in xfs_trans_log_buf()
508 ASSERT(bp->b_iodone == NULL || in xfs_trans_log_buf()
509 bp->b_iodone == xfs_buf_iodone_callbacks); in xfs_trans_log_buf()
521 XFS_BUF_DONE(bp); in xfs_trans_log_buf()
524 bp->b_iodone = xfs_buf_iodone_callbacks; in xfs_trans_log_buf()
537 ASSERT(XFS_BUF_ISSTALE(bp)); in xfs_trans_log_buf()
538 XFS_BUF_UNSTALE(bp); in xfs_trans_log_buf()
587 xfs_buf_t *bp) in xfs_trans_binval() argument
589 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_binval()
592 ASSERT(bp->b_transp == tp); in xfs_trans_binval()
603 ASSERT(XFS_BUF_ISSTALE(bp)); in xfs_trans_binval()
613 xfs_buf_stale(bp); in xfs_trans_binval()
642 xfs_buf_t *bp) in xfs_trans_inode_buf() argument
644 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_inode_buf()
646 ASSERT(bp->b_transp == tp); in xfs_trans_inode_buf()
651 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DINO_BUF); in xfs_trans_inode_buf()
666 xfs_buf_t *bp) in xfs_trans_stale_inode_buf() argument
668 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_stale_inode_buf()
670 ASSERT(bp->b_transp == tp); in xfs_trans_stale_inode_buf()
676 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DINO_BUF); in xfs_trans_stale_inode_buf()
691 xfs_buf_t *bp) in xfs_trans_inode_alloc_buf() argument
693 xfs_buf_log_item_t *bip = bp->b_fspriv; in xfs_trans_inode_alloc_buf()
695 ASSERT(bp->b_transp == tp); in xfs_trans_inode_alloc_buf()
700 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DINO_BUF); in xfs_trans_inode_alloc_buf()
714 struct xfs_buf *bp) in xfs_trans_ordered_buf() argument
716 struct xfs_buf_log_item *bip = bp->b_fspriv; in xfs_trans_ordered_buf()
718 ASSERT(bp->b_transp == tp); in xfs_trans_ordered_buf()
733 struct xfs_buf *bp, in xfs_trans_buf_set_type() argument
736 struct xfs_buf_log_item *bip = bp->b_fspriv; in xfs_trans_buf_set_type()
741 ASSERT(bp->b_transp == tp); in xfs_trans_buf_set_type()
775 xfs_buf_t *bp, in xfs_trans_dquot_buf() argument
778 struct xfs_buf_log_item *bip = bp->b_fspriv; in xfs_trans_dquot_buf()
801 xfs_trans_buf_set_type(tp, bp, type); in xfs_trans_dquot_buf()