Home
last modified time | relevance | path

Searched refs:agbp (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.15/fs/xfs/libxfs/
Dxfs_refcount_btree.c29 cur->bc_ag.agbp, cur->bc_ag.pag); in xfs_refcountbt_dup_cursor()
38 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_set_root() local
39 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_set_root()
40 struct xfs_perag *pag = agbp->b_pag; in xfs_refcountbt_set_root()
48 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
59 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_alloc_block() local
60 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_alloc_block()
88 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_alloc_block()
103 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_free_block() local
104 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_free_block()
[all …]
Dxfs_rmap_btree.c55 cur->bc_ag.agbp, cur->bc_ag.pag); in xfs_rmapbt_dup_cursor()
64 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root() local
65 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root()
74 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
84 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_alloc_block() local
85 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_alloc_block()
91 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_rmapbt_alloc_block()
106 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
119 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_free_block() local
120 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_free_block()
[all …]
Dxfs_ialloc_btree.c38 cur->bc_ag.agbp, cur->bc_ag.pag, cur->bc_btnum); in xfs_inobt_dup_cursor()
47 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_set_root() local
48 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root()
52 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_ROOT | XFS_AGI_LEVEL); in xfs_inobt_set_root()
61 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_finobt_set_root() local
62 struct xfs_agi *agi = agbp->b_addr; in xfs_finobt_set_root()
66 xfs_ialloc_log_agi(cur->bc_tp, agbp, in xfs_finobt_set_root()
76 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_mod_blockcount() local
77 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_mod_blockcount()
86 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_IBLOCKS); in xfs_inobt_mod_blockcount()
[all …]
Dxfs_alloc_btree.c29 cur->bc_ag.agbp, cur->bc_ag.pag, cur->bc_btnum); in xfs_allocbt_dup_cursor()
38 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_set_root() local
39 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_set_root()
48 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
62 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_allocbt_alloc_block()
73 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.agbp->b_pag, bno, 1, false); in xfs_allocbt_alloc_block()
86 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_free_block() local
91 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
96 xfs_extent_busy_insert(cur->bc_tp, agbp->b_pag, bno, 1, in xfs_allocbt_free_block()
112 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_update_lastrec()
[all …]
Dxfs_alloc.c713 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
716 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters()
718 agbp->b_pag->pagf_freeblks += len; in xfs_alloc_update_counters()
723 xfs_buf_mark_corrupt(agbp); in xfs_alloc_update_counters()
727 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
779 args->agbp, args->pag, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
789 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
792 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
924 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish()
1028 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small()
[all …]
Dxfs_ialloc.c174 struct xfs_buf *agbp, in xfs_inobt_insert() argument
185 cur = xfs_inobt_init_cursor(mp, tp, agbp, pag, btnum); in xfs_inobt_insert()
519 struct xfs_buf *agbp, in xfs_inobt_insert_sprec() argument
530 cur = xfs_inobt_init_cursor(mp, tp, agbp, pag, btnum); in xfs_inobt_insert_sprec()
613 struct xfs_buf *agbp, in xfs_ialloc_ag_alloc() argument
657 agi = agbp->b_addr; in xfs_ialloc_ag_alloc()
834 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, pag, in xfs_ialloc_ag_alloc()
859 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, pag, in xfs_ialloc_ag_alloc()
866 error = xfs_inobt_insert(args.mp, tp, agbp, pag, newino, newlen, in xfs_ialloc_ag_alloc()
872 error = xfs_inobt_insert(args.mp, tp, agbp, pag, newino, in xfs_ialloc_ag_alloc()
[all …]
Dxfs_alloc.h55 struct xfs_buf *agbp; /* buffer for a.g. freelist header */ member
114 struct xfs_buf *agbp, /* buffer containing the agf structure */
143 struct xfs_buf *agbp, /* buffer for a.g. freelist header */
218 struct xfs_buf **agbp);
Dxfs_refcount_btree.h49 struct xfs_trans *tp, struct xfs_buf *agbp,
66 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_ialloc_btree.h50 struct xfs_trans *tp, struct xfs_buf *agbp,
76 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_refcount.c1115 struct xfs_buf *agbp; in xfs_refcount_finish_one_cleanup() local
1119 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
1122 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one_cleanup()
1144 struct xfs_buf *agbp = NULL; in xfs_refcount_finish_one() local
1178 XFS_ALLOC_FLAG_FREEING, &agbp); in xfs_refcount_finish_one()
1182 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_finish_one()
1682 struct xfs_buf *agbp; in xfs_refcount_recover_cow_leftovers() local
1710 error = xfs_alloc_read_agf(mp, tp, pag->pag_agno, 0, &agbp); in xfs_refcount_recover_cow_leftovers()
1713 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_recover_cow_leftovers()
1723 xfs_trans_brelse(tp, agbp); in xfs_refcount_recover_cow_leftovers()
Dxfs_alloc_btree.h61 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_btree_staging.h25 struct xfs_buf *agbp, const struct xfs_btree_ops *ops);
Dxfs_rmap.h117 int xfs_rmap_alloc(struct xfs_trans *tp, struct xfs_buf *agbp,
120 int xfs_rmap_free(struct xfs_trans *tp, struct xfs_buf *agbp,
Dxfs_rmap_btree.h50 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_btree_staging.c166 struct xfs_buf *agbp, in xfs_btree_commit_afakeroot() argument
175 cur->bc_ag.agbp = agbp; in xfs_btree_commit_afakeroot()
Dxfs_rmap.c698 struct xfs_buf *agbp, in xfs_rmap_free() argument
711 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_free()
952 struct xfs_buf *agbp, in xfs_rmap_alloc() argument
965 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_alloc()
2337 struct xfs_buf *agbp; in xfs_rmap_finish_one_cleanup() local
2341 agbp = rcur->bc_ag.agbp; in xfs_rmap_finish_one_cleanup()
2344 xfs_trans_brelse(tp, agbp); in xfs_rmap_finish_one_cleanup()
2369 struct xfs_buf *agbp = NULL; in xfs_rmap_finish_one() local
2403 error = xfs_free_extent_fix_freelist(tp, pag, &agbp); in xfs_rmap_finish_one()
2406 if (XFS_IS_CORRUPT(tp->t_mountp, !agbp)) { in xfs_rmap_finish_one()
[all …]
Dxfs_btree.h186 struct xfs_buf *agbp; member
/Linux-v5.15/fs/xfs/
Dxfs_discard.c33 struct xfs_buf *agbp; in xfs_trim_extents() local
48 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents()
51 agf = agbp->b_addr; in xfs_trim_extents()
53 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, pag, XFS_BTNUM_CNT); in xfs_trim_extents()
135 xfs_buf_relse(agbp); in xfs_trim_extents()
Dxfs_reflink.c139 struct xfs_buf *agbp; in xfs_reflink_find_shared() local
143 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_reflink_find_shared()
147 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agbp->b_pag); in xfs_reflink_find_shared()
154 xfs_trans_brelse(tp, agbp); in xfs_reflink_find_shared()
Dxfs_extfree_item.c532 struct xfs_buf *agbp; in xfs_agfl_free_finish_item() local
545 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_agfl_free_finish_item()
547 error = xfs_free_agfl_block(tp, agno, agbno, agbp, in xfs_agfl_free_finish_item()