Lines Matching refs:tp

532 	xfs_trans_t	*tp,		/* transaction pointer */  in xfs_alloc_read_agfl()  argument
541 mp, tp, mp->m_ddev_targp, in xfs_alloc_read_agfl()
553 struct xfs_trans *tp, in xfs_alloc_update_counters() argument
563 xfs_trans_agblocks_delta(tp, len); in xfs_alloc_update_counters()
568 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
623 error = xfs_alloc_update_counters(args->tp, args->pag, in xfs_alloc_ag_vextent()
634 xfs_trans_mod_sb(args->tp, args->wasdel ? in xfs_alloc_ag_vextent()
670 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
728 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
897 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1025 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, in xfs_alloc_ag_vextent_near()
1054 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1269 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1420 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1485 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1495 bp = xfs_btree_get_bufs(args->mp, args->tp, in xfs_alloc_ag_vextent_small()
1497 xfs_trans_binval(args->tp, bp); in xfs_alloc_ag_vextent_small()
1547 xfs_trans_t *tp, /* transaction pointer */ in xfs_free_ag_extent() argument
1569 mp = tp->t_mountp; in xfs_free_ag_extent()
1573 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1633 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1772 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
1778 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, (long)len); in xfs_free_ag_extent()
1861 xfs_trans_t *tp; /* transaction pointer */ in xfs_alloc_fix_freelist() local
1866 tp = args->tp; in xfs_alloc_fix_freelist()
1868 if ((error = xfs_alloc_read_agf(mp, tp, args->agno, flags, in xfs_alloc_fix_freelist()
1904 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
1915 if ((error = xfs_alloc_read_agf(mp, tp, args->agno, flags, in xfs_alloc_fix_freelist()
1944 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
1955 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
1958 if ((error = xfs_free_ag_extent(tp, agbp, args->agno, bno, 1, 1))) in xfs_alloc_fix_freelist()
1960 bp = xfs_btree_get_bufs(mp, tp, args->agno, bno, 0); in xfs_alloc_fix_freelist()
1961 xfs_trans_binval(tp, bp); in xfs_alloc_fix_freelist()
1967 targs.tp = tp; in xfs_alloc_fix_freelist()
1974 if ((error = xfs_alloc_read_agfl(mp, tp, targs.agno, &agflbp))) in xfs_alloc_fix_freelist()
1986 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
1997 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2005 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2011 xfs_trans_brelse(tp, agflbp); in xfs_alloc_fix_freelist()
2022 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_get_freelist() argument
2033 xfs_mount_t *mp = tp->t_mountp; in xfs_alloc_get_freelist()
2047 error = xfs_alloc_read_agfl(mp, tp, be32_to_cpu(agf->agf_seqno), in xfs_alloc_get_freelist()
2059 xfs_trans_brelse(tp, agflbp); in xfs_alloc_get_freelist()
2065 xfs_trans_agflist_delta(tp, -1); in xfs_alloc_get_freelist()
2076 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2087 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_log_agf() argument
2110 trace_xfs_agf(tp->t_mountp, XFS_BUF_TO_AGF(bp), fields, _RET_IP_); in xfs_alloc_log_agf()
2112 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_AGF_BUF); in xfs_alloc_log_agf()
2115 xfs_trans_log_buf(tp, bp, (uint)first, (uint)last); in xfs_alloc_log_agf()
2124 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_pagf_init() argument
2131 if ((error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp))) in xfs_alloc_pagf_init()
2134 xfs_trans_brelse(tp, bp); in xfs_alloc_pagf_init()
2143 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_put_freelist() argument
2159 mp = tp->t_mountp; in xfs_alloc_put_freelist()
2161 if (!agflbp && (error = xfs_alloc_read_agfl(mp, tp, in xfs_alloc_put_freelist()
2170 xfs_trans_agflist_delta(tp, 1); in xfs_alloc_put_freelist()
2181 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2190 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2192 xfs_trans_buf_set_type(tp, agflbp, XFS_BLFT_AGFL_BUF); in xfs_alloc_put_freelist()
2193 xfs_trans_log_buf(tp, agflbp, startoff, in xfs_alloc_put_freelist()
2289 struct xfs_trans *tp, /* transaction pointer */ in xfs_read_agf() argument
2300 mp, tp, mp->m_ddev_targp, in xfs_read_agf()
2319 struct xfs_trans *tp, /* transaction pointer */ in xfs_alloc_read_agf() argument
2331 error = xfs_read_agf(mp, tp, agno, in xfs_alloc_read_agf()
2595 xfs_trans_t *tp, /* transaction pointer */ in xfs_free_extent() argument
2604 args.tp = tp; in xfs_free_extent()
2605 args.mp = tp->t_mountp; in xfs_free_extent()
2633 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); in xfs_free_extent()
2635 xfs_extent_busy_insert(tp, args.agno, args.agbno, len, 0); in xfs_free_extent()