Lines Matching refs:tp
549 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_read_agfl() argument
558 mp, tp, mp->m_ddev_targp, in xfs_alloc_read_agfl()
570 struct xfs_trans *tp, in xfs_alloc_update_counters() argument
580 xfs_trans_agblocks_delta(tp, len); in xfs_alloc_update_counters()
585 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
640 error = xfs_alloc_update_counters(args->tp, args->pag, in xfs_alloc_ag_vextent()
651 xfs_trans_mod_sb(args->tp, args->wasdel ? in xfs_alloc_ag_vextent()
687 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
745 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
929 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1059 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, in xfs_alloc_ag_vextent_near()
1088 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1304 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1455 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1520 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1530 bp = xfs_btree_get_bufs(args->mp, args->tp, in xfs_alloc_ag_vextent_small()
1532 xfs_trans_binval(args->tp, bp); in xfs_alloc_ag_vextent_small()
1582 xfs_trans_t *tp, /* transaction pointer */ in xfs_free_ag_extent() argument
1604 mp = tp->t_mountp; in xfs_free_ag_extent()
1608 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1668 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1807 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
1813 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, (long)len); in xfs_free_ag_extent()
1937 struct xfs_trans *tp = args->tp; in xfs_alloc_fix_freelist() local
1946 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
1976 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2010 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2013 error = xfs_free_ag_extent(tp, agbp, args->agno, bno, 1, 1); in xfs_alloc_fix_freelist()
2016 bp = xfs_btree_get_bufs(mp, tp, args->agno, bno, 0); in xfs_alloc_fix_freelist()
2017 xfs_trans_binval(tp, bp); in xfs_alloc_fix_freelist()
2021 targs.tp = tp; in xfs_alloc_fix_freelist()
2028 error = xfs_alloc_read_agfl(mp, tp, targs.agno, &agflbp); in xfs_alloc_fix_freelist()
2056 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2062 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2067 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2070 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
2082 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_get_freelist() argument
2093 xfs_mount_t *mp = tp->t_mountp; in xfs_alloc_get_freelist()
2107 error = xfs_alloc_read_agfl(mp, tp, be32_to_cpu(agf->agf_seqno), in xfs_alloc_get_freelist()
2119 xfs_trans_brelse(tp, agflbp); in xfs_alloc_get_freelist()
2125 xfs_trans_agflist_delta(tp, -1); in xfs_alloc_get_freelist()
2136 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2147 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_log_agf() argument
2170 trace_xfs_agf(tp->t_mountp, XFS_BUF_TO_AGF(bp), fields, _RET_IP_); in xfs_alloc_log_agf()
2172 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_AGF_BUF); in xfs_alloc_log_agf()
2175 xfs_trans_log_buf(tp, bp, (uint)first, (uint)last); in xfs_alloc_log_agf()
2184 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_pagf_init() argument
2191 if ((error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp))) in xfs_alloc_pagf_init()
2194 xfs_trans_brelse(tp, bp); in xfs_alloc_pagf_init()
2203 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_put_freelist() argument
2219 mp = tp->t_mountp; in xfs_alloc_put_freelist()
2221 if (!agflbp && (error = xfs_alloc_read_agfl(mp, tp, in xfs_alloc_put_freelist()
2230 xfs_trans_agflist_delta(tp, 1); in xfs_alloc_put_freelist()
2241 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2250 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2252 xfs_trans_buf_set_type(tp, agflbp, XFS_BLFT_AGFL_BUF); in xfs_alloc_put_freelist()
2253 xfs_trans_log_buf(tp, agflbp, startoff, in xfs_alloc_put_freelist()
2354 struct xfs_trans *tp, /* transaction pointer */ in xfs_read_agf() argument
2365 mp, tp, mp->m_ddev_targp, in xfs_read_agf()
2384 struct xfs_trans *tp, /* transaction pointer */ in xfs_alloc_read_agf() argument
2396 error = xfs_read_agf(mp, tp, agno, in xfs_alloc_read_agf()
2668 xfs_trans_t *tp, /* transaction pointer */ in xfs_free_extent() argument
2677 args.tp = tp; in xfs_free_extent()
2678 args.mp = tp->t_mountp; in xfs_free_extent()
2706 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); in xfs_free_extent()
2708 xfs_extent_busy_insert(tp, args.agno, args.agbno, len, 0); in xfs_free_extent()