• Home
  • Raw
  • Download

Lines Matching refs:tp

104 		xfs_trans_t	*tp;  in xfs_growfs_rt_alloc()  local
106 tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFSRT_ALLOC); in xfs_growfs_rt_alloc()
111 if ((error = xfs_trans_reserve(tp, resblks, in xfs_growfs_rt_alloc()
120 if ((error = xfs_trans_iget(mp, tp, ino, 0, in xfs_growfs_rt_alloc()
129 error = xfs_bmapi(tp, ip, oblocks, nblocks - oblocks, in xfs_growfs_rt_alloc()
139 error = xfs_bmap_finish(&tp, &flist, &committed); in xfs_growfs_rt_alloc()
142 error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); in xfs_growfs_rt_alloc()
153 tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFSRT_ZERO); in xfs_growfs_rt_alloc()
157 if ((error = xfs_trans_reserve(tp, 0, in xfs_growfs_rt_alloc()
163 if ((error = xfs_trans_iget(mp, tp, ino, 0, in xfs_growfs_rt_alloc()
170 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_growfs_rt_alloc()
175 xfs_trans_cancel(tp, cancelflags); in xfs_growfs_rt_alloc()
179 xfs_trans_log_buf(tp, bp, 0, mp->m_sb.sb_blocksize - 1); in xfs_growfs_rt_alloc()
183 error = xfs_trans_commit(tp, 0); in xfs_growfs_rt_alloc()
206 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_extent_block() argument
237 error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat); in xfs_rtallocate_extent_block()
245 error = xfs_rtallocate_range(mp, tp, i, maxlen, rbpp, in xfs_rtallocate_extent_block()
273 error = xfs_rtfind_forw(mp, tp, next, end, &i); in xfs_rtallocate_extent_block()
294 error = xfs_rtallocate_range(mp, tp, besti, bestlen, rbpp, rsb); in xfs_rtallocate_extent_block()
319 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_extent_exact() argument
338 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact()
346 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
381 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
398 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_extent_near() argument
427 error = xfs_rtallocate_extent_exact(mp, tp, bno, minlen, maxlen, len, in xfs_rtallocate_extent_near()
451 error = xfs_rtany_summary(mp, tp, log2len, mp->m_rsumlevels - 1, in xfs_rtallocate_extent_near()
469 error = xfs_rtallocate_extent_block(mp, tp, in xfs_rtallocate_extent_near()
498 error = xfs_rtany_summary(mp, tp, in xfs_rtallocate_extent_near()
515 tp, bbno + j, minlen, maxlen, in xfs_rtallocate_extent_near()
536 error = xfs_rtallocate_extent_block(mp, tp, in xfs_rtallocate_extent_near()
593 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_extent_size() argument
627 error = xfs_rtget_summary(mp, tp, l, i, rbpp, rsb, in xfs_rtallocate_extent_size()
640 error = xfs_rtallocate_extent_block(mp, tp, i, maxlen, in xfs_rtallocate_extent_size()
686 error = xfs_rtget_summary(mp, tp, l, i, rbpp, rsb, in xfs_rtallocate_extent_size()
701 error = xfs_rtallocate_extent_block(mp, tp, i, in xfs_rtallocate_extent_size()
738 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_range() argument
755 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtallocate_range()
762 error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, in xfs_rtallocate_range()
771 error = xfs_rtmodify_summary(mp, tp, in xfs_rtallocate_range()
782 error = xfs_rtmodify_summary(mp, tp, in xfs_rtallocate_range()
794 error = xfs_rtmodify_summary(mp, tp, in xfs_rtallocate_range()
804 error = xfs_rtmodify_range(mp, tp, start, len, 0); in xfs_rtallocate_range()
815 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtany_summary() argument
834 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
860 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtbuf_get() argument
876 error = xfs_bmapi_single(tp, ip, XFS_DATA_FORK, &fsb, block); in xfs_rtbuf_get()
888 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, d, in xfs_rtbuf_get()
905 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtcheck_alloc_range() argument
912 return xfs_rtcheck_range(mp, tp, bno, len, 0, &new, stat); in xfs_rtcheck_alloc_range()
923 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtcheck_range() argument
949 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtcheck_range()
984 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
999 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
1000 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtcheck_range()
1030 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
1045 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
1046 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtcheck_range()
1075 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
1086 xfs_trans_brelse(tp, bp); in xfs_rtcheck_range()
1100 xfs_trans_t *tp) /* transaction pointer */ in xfs_rtcopy_summary() argument
1114 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary()
1120 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary()
1124 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary()
1141 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfind_back() argument
1164 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back()
1201 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
1215 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
1216 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
1247 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
1261 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
1262 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
1294 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
1304 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
1316 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfind_forw() argument
1339 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_forw()
1375 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
1389 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
1390 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtfind_forw()
1420 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
1434 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
1435 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtfind_forw()
1464 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
1474 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
1486 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfree_range() argument
1501 error = xfs_rtmodify_range(mp, tp, start, len, 1); in xfs_rtfree_range()
1510 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtfree_range()
1517 error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, in xfs_rtfree_range()
1524 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
1536 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
1547 error = xfs_rtmodify_summary(mp, tp, in xfs_rtfree_range()
1562 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtget_summary() argument
1596 xfs_trans_brelse(tp, *rbpp); in xfs_rtget_summary()
1597 error = xfs_rtbuf_get(mp, tp, sb, 1, &bp); in xfs_rtget_summary()
1618 xfs_trans_brelse(tp, bp); in xfs_rtget_summary()
1629 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtmodify_range() argument
1653 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtmodify_range()
1695 xfs_trans_log_buf(tp, bp, in xfs_rtmodify_range()
1698 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtmodify_range()
1735 xfs_trans_log_buf(tp, bp, in xfs_rtmodify_range()
1738 error = xfs_rtbuf_get(mp, tp, ++block, 0, &bp); in xfs_rtmodify_range()
1774 xfs_trans_log_buf(tp, bp, (uint)((char *)first - (char *)bufp), in xfs_rtmodify_range()
1788 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtmodify_summary() argument
1822 xfs_trans_brelse(tp, *rbpp); in xfs_rtmodify_summary()
1823 error = xfs_rtbuf_get(mp, tp, sb, 1, &bp); in xfs_rtmodify_summary()
1840 xfs_trans_log_buf(tp, bp, (uint)((char *)sp - (char *)XFS_BUF_PTR(bp)), in xfs_rtmodify_summary()
1944 xfs_trans_t *tp; in xfs_growfs_rt() local
1971 tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFSRT_FREE); in xfs_growfs_rt()
1972 if ((error = xfs_trans_reserve(tp, 0, in xfs_growfs_rt()
1978 if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, in xfs_growfs_rt()
1987 xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE); in xfs_growfs_rt()
1992 if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rsumino, 0, in xfs_growfs_rt()
2000 xfs_trans_log_inode(tp, mp->m_rsumip, XFS_ILOG_CORE); in xfs_growfs_rt()
2007 error = xfs_rtcopy_summary(mp, nmp, tp); in xfs_growfs_rt()
2015 xfs_trans_mod_sb(tp, XFS_TRANS_SB_REXTSIZE, in xfs_growfs_rt()
2018 xfs_trans_mod_sb(tp, XFS_TRANS_SB_RBMBLOCKS, in xfs_growfs_rt()
2021 xfs_trans_mod_sb(tp, XFS_TRANS_SB_RBLOCKS, in xfs_growfs_rt()
2024 xfs_trans_mod_sb(tp, XFS_TRANS_SB_REXTENTS, in xfs_growfs_rt()
2027 xfs_trans_mod_sb(tp, XFS_TRANS_SB_REXTSLOG, in xfs_growfs_rt()
2033 error = xfs_rtfree_range(nmp, tp, sbp->sb_rextents, in xfs_growfs_rt()
2037 xfs_trans_cancel(tp, cancelflags); in xfs_growfs_rt()
2043 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FREXTENTS, in xfs_growfs_rt()
2051 error = xfs_trans_commit(tp, 0); in xfs_growfs_rt()
2071 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_extent() argument
2089 mp = tp->t_mountp; in xfs_rtallocate_extent()
2108 if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, in xfs_rtallocate_extent()
2117 error = xfs_rtallocate_extent_size(mp, tp, minlen, maxlen, len, in xfs_rtallocate_extent()
2121 error = xfs_rtallocate_extent_near(mp, tp, bno, minlen, maxlen, in xfs_rtallocate_extent()
2125 error = xfs_rtallocate_extent_exact(mp, tp, bno, minlen, maxlen, in xfs_rtallocate_extent()
2142 xfs_trans_mod_sb(tp, XFS_TRANS_SB_RES_FREXTENTS, -slen); in xfs_rtallocate_extent()
2144 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FREXTENTS, -slen); in xfs_rtallocate_extent()
2156 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfree_extent() argument
2166 mp = tp->t_mountp; in xfs_rtfree_extent()
2170 if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, in xfs_rtfree_extent()
2180 error = xfs_rtcheck_alloc_range(mp, tp, bno, len, &stat); in xfs_rtfree_extent()
2191 error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb); in xfs_rtfree_extent()
2198 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FREXTENTS, (long)len); in xfs_rtfree_extent()
2203 if (tp->t_frextents_delta + mp->m_sb.sb_frextents == in xfs_rtfree_extent()
2208 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_rtfree_extent()
2301 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtpick_extent() argument
2313 if ((error = xfs_trans_iget(mp, tp, mp->m_sb.sb_rbmino, 0, in xfs_rtpick_extent()
2335 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_rtpick_extent()