• Home
  • Raw
  • Download

Lines Matching refs:tp

49 xfs_alloc_search_busy(xfs_trans_t *tp,
63 #define TRACE_BUSY(__func__,s,ag,agb,l,sl,tp) \ argument
64 xfs_alloc_trace_busy(__func__, s, mp, ag, agb, l, sl, tp, XFS_ALLOC_KTRACE_BUSY, __LINE__)
65 #define TRACE_UNBUSY(__func__,s,ag,sl,tp) \ argument
66 xfs_alloc_trace_busy(__func__, s, mp, ag, -1, -1, sl, tp, XFS_ALLOC_KTRACE_UNBUSY, __LINE__)
67 #define TRACE_BUSYSEARCH(__func__,s,ag,agb,l,tp) \ argument
68 xfs_alloc_trace_busy(__func__, s, mp, ag, agb, l, 0, tp, XFS_ALLOC_KTRACE_BUSYSEARCH, __LINE__)
73 #define TRACE_BUSY(s,a,ag,agb,l,sl,tp) argument
74 #define TRACE_UNBUSY(fname,s,ag,sl,tp) argument
75 #define TRACE_BUSYSEARCH(fname,s,ag,agb,l,tp) argument
480 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_read_agfl() argument
489 mp, tp, mp->m_ddev_targp, in xfs_alloc_read_agfl()
601 xfs_trans_t *tp, in xfs_alloc_trace_busy() argument
614 (void *)tp, in xfs_alloc_trace_busy()
680 xfs_trans_agblocks_delta(args->tp, in xfs_alloc_ag_vextent()
686 xfs_alloc_log_agf(args->tp, args->agbp, in xfs_alloc_ag_vextent()
689 xfs_alloc_search_busy(args->tp, args->agno, in xfs_alloc_ag_vextent()
693 xfs_trans_mod_sb(args->tp, in xfs_alloc_ag_vextent()
728 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
784 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
847 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
974 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, in xfs_alloc_ag_vextent_near()
1002 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1355 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1460 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1519 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1526 bp = xfs_btree_get_bufs(args->mp, args->tp, in xfs_alloc_ag_vextent_small()
1528 xfs_trans_binval(args->tp, bp); in xfs_alloc_ag_vextent_small()
1578 xfs_trans_t *tp, /* transaction pointer */ in xfs_free_ag_extent() argument
1599 mp = tp->t_mountp; in xfs_free_ag_extent()
1603 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1662 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1806 xfs_trans_agblocks_delta(tp, len); in xfs_free_ag_extent()
1813 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_free_ag_extent()
1815 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, (long)len); in xfs_free_ag_extent()
1835 xfs_alloc_mark_busy(tp, agno, bno, len); in xfs_free_ag_extent()
1894 xfs_trans_t *tp; /* transaction pointer */ in xfs_alloc_fix_freelist() local
1899 tp = args->tp; in xfs_alloc_fix_freelist()
1901 if ((error = xfs_alloc_read_agf(mp, tp, args->agno, flags, in xfs_alloc_fix_freelist()
1940 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
1951 if ((error = xfs_alloc_read_agf(mp, tp, args->agno, flags, in xfs_alloc_fix_freelist()
1980 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
1991 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
1994 if ((error = xfs_free_ag_extent(tp, agbp, args->agno, bno, 1, 1))) in xfs_alloc_fix_freelist()
1996 bp = xfs_btree_get_bufs(mp, tp, args->agno, bno, 0); in xfs_alloc_fix_freelist()
1997 xfs_trans_binval(tp, bp); in xfs_alloc_fix_freelist()
2002 targs.tp = tp; in xfs_alloc_fix_freelist()
2011 if ((error = xfs_alloc_read_agfl(mp, tp, targs.agno, &agflbp))) in xfs_alloc_fix_freelist()
2023 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2034 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2042 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2048 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2059 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_get_freelist() argument
2084 mp = tp->t_mountp; in xfs_alloc_get_freelist()
2085 if ((error = xfs_alloc_read_agfl(mp, tp, in xfs_alloc_get_freelist()
2094 xfs_trans_brelse(tp, agflbp); in xfs_alloc_get_freelist()
2099 xfs_trans_agflist_delta(tp, -1); in xfs_alloc_get_freelist()
2110 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2121 xfs_alloc_search_busy(tp, be32_to_cpu(agf->agf_seqno), bno, 1); in xfs_alloc_get_freelist()
2130 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_log_agf() argument
2153 xfs_trans_log_buf(tp, bp, (uint)first, (uint)last); in xfs_alloc_log_agf()
2162 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_pagf_init() argument
2169 if ((error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp))) in xfs_alloc_pagf_init()
2172 xfs_trans_brelse(tp, bp); in xfs_alloc_pagf_init()
2181 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_put_freelist() argument
2196 mp = tp->t_mountp; in xfs_alloc_put_freelist()
2198 if (!agflbp && (error = xfs_alloc_read_agfl(mp, tp, in xfs_alloc_put_freelist()
2207 xfs_trans_agflist_delta(tp, 1); in xfs_alloc_put_freelist()
2218 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2224 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2225 xfs_trans_log_buf(tp, agflbp, in xfs_alloc_put_freelist()
2238 struct xfs_trans *tp, /* transaction pointer */ in xfs_read_agf() argument
2249 mp, tp, mp->m_ddev_targp, in xfs_read_agf()
2278 xfs_trans_brelse(tp, *bpp); in xfs_read_agf()
2292 struct xfs_trans *tp, /* transaction pointer */ in xfs_alloc_read_agf() argument
2303 error = xfs_read_agf(mp, tp, agno, in xfs_alloc_read_agf()
2567 xfs_trans_t *tp, /* transaction pointer */ in xfs_free_extent() argument
2576 args.tp = tp; in xfs_free_extent()
2577 args.mp = tp->t_mountp; in xfs_free_extent()
2590 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); in xfs_free_extent()
2608 xfs_alloc_mark_busy(xfs_trans_t *tp, in xfs_alloc_mark_busy() argument
2617 mp = tp->t_mountp; in xfs_alloc_mark_busy()
2632 TRACE_BUSY("xfs_alloc_mark_busy", "got", agno, bno, len, n, tp); in xfs_alloc_mark_busy()
2635 bsy->busy_tp = tp; in xfs_alloc_mark_busy()
2636 xfs_trans_add_busy(tp, agno, n); in xfs_alloc_mark_busy()
2638 TRACE_BUSY("xfs_alloc_mark_busy", "FULL", agno, bno, len, -1, tp); in xfs_alloc_mark_busy()
2645 xfs_trans_set_sync(tp); in xfs_alloc_mark_busy()
2652 xfs_alloc_clear_busy(xfs_trans_t *tp, in xfs_alloc_clear_busy() argument
2659 mp = tp->t_mountp; in xfs_alloc_clear_busy()
2665 if (list[idx].busy_tp == tp) { in xfs_alloc_clear_busy()
2666 TRACE_UNBUSY("xfs_alloc_clear_busy", "found", agno, idx, tp); in xfs_alloc_clear_busy()
2670 TRACE_UNBUSY("xfs_alloc_clear_busy", "missing", agno, idx, tp); in xfs_alloc_clear_busy()
2682 xfs_alloc_search_busy(xfs_trans_t *tp, in xfs_alloc_search_busy() argument
2693 mp = tp->t_mountp; in xfs_alloc_search_busy()
2712 "found1", agno, bno, len, tp); in xfs_alloc_search_busy()
2723 TRACE_BUSYSEARCH("xfs_alloc_search_busy", "found", agno, bno, len, tp); in xfs_alloc_search_busy()
2728 TRACE_BUSYSEARCH("xfs_alloc_search_busy", "not-found", agno, bno, len, tp); in xfs_alloc_search_busy()