Lines Matching refs:tp
56 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtbuf_get() argument
77 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_rtbuf_get()
83 xfs_trans_buf_set_type(tp, bp, issum ? XFS_BLFT_RTSUMMARY_BUF in xfs_rtbuf_get()
96 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfind_back() argument
119 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back()
156 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
170 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
171 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
202 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
216 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
217 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
249 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
259 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
271 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfind_forw() argument
294 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_forw()
330 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
344 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
345 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtfind_forw()
375 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
389 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
390 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtfind_forw()
419 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
429 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
446 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtmodify_summary_int() argument
481 xfs_trans_brelse(tp, *rbpp); in xfs_rtmodify_summary_int()
482 error = xfs_rtbuf_get(mp, tp, sb, 1, &bp); in xfs_rtmodify_summary_int()
506 xfs_trans_log_buf(tp, bp, first, first + sizeof(*sp) - 1); in xfs_rtmodify_summary_int()
516 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtmodify_summary() argument
523 return xfs_rtmodify_summary_int(mp, tp, log, bbno, in xfs_rtmodify_summary()
534 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtmodify_range() argument
558 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtmodify_range()
600 xfs_trans_log_buf(tp, bp, in xfs_rtmodify_range()
603 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtmodify_range()
640 xfs_trans_log_buf(tp, bp, in xfs_rtmodify_range()
643 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtmodify_range()
678 xfs_trans_log_buf(tp, bp, (uint)((char *)first - (char *)bufp), in xfs_rtmodify_range()
690 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfree_range() argument
705 error = xfs_rtmodify_range(mp, tp, start, len, 1); in xfs_rtfree_range()
714 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtfree_range()
721 error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, in xfs_rtfree_range()
730 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
742 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
753 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
766 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtcheck_range() argument
792 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtcheck_range()
827 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
842 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
843 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtcheck_range()
873 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
888 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
889 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtcheck_range()
918 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
929 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
942 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtcheck_alloc_range() argument
950 error = xfs_rtcheck_range(mp, tp, bno, len, 0, &new, &stat); in xfs_rtcheck_alloc_range()
965 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfree_extent() argument
974 mp = tp->t_mountp; in xfs_rtfree_extent()
979 error = xfs_rtcheck_alloc_range(mp, tp, bno, len); in xfs_rtfree_extent()
986 error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb); in xfs_rtfree_extent()
993 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FREXTENTS, (long)len); in xfs_rtfree_extent()
998 if (tp->t_frextents_delta + mp->m_sb.sb_frextents == in xfs_rtfree_extent()
1003 xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE); in xfs_rtfree_extent()
1011 struct xfs_trans *tp, in xfs_rtalloc_query_range() argument
1018 struct xfs_mount *mp = tp->t_mountp; in xfs_rtalloc_query_range()
1036 error = xfs_rtcheck_range(mp, tp, rtstart, 1, 1, &rtend, in xfs_rtalloc_query_range()
1042 error = xfs_rtfind_forw(mp, tp, rtstart, in xfs_rtalloc_query_range()
1051 error = fn(tp, &rec, priv); in xfs_rtalloc_query_range()
1065 struct xfs_trans *tp, in xfs_rtalloc_query_all() argument
1072 keys[1].ar_startext = tp->t_mountp->m_sb.sb_rextents - 1; in xfs_rtalloc_query_all()
1075 return xfs_rtalloc_query_range(tp, &keys[0], &keys[1], fn, priv); in xfs_rtalloc_query_all()
1082 struct xfs_trans *tp, in xfs_rtalloc_extent_is_free() argument
1091 error = xfs_rtcheck_range(mp, tp, start, len, 1, &end, &matches); in xfs_rtalloc_extent_is_free()