Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_refcount_btree.c29 cur->bc_ag.agbp, cur->bc_ag.agno); 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.agno); 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()
67 struct xfs_perag *pag = agbp->b_pag; in xfs_rmapbt_set_root()
75 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
85 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_alloc_block() local
86 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()
109 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
122 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_free_block() local
[all …]
Dxfs_ialloc_btree.c37 cur->bc_ag.agbp, cur->bc_ag.agno, 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.agno, in xfs_allocbt_dup_cursor()
39 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_set_root() local
40 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_set_root()
42 struct xfs_perag *pag = agbp->b_pag; in xfs_allocbt_set_root()
50 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
64 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_ag.agbp, in xfs_allocbt_alloc_block()
88 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_free_block() local
89 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_free_block()
94 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
115 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()
724 xfs_buf_mark_corrupt(agbp); in xfs_alloc_update_counters()
728 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
780 args->agbp, args->agno, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
790 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
793 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
925 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish()
1029 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
180 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_insert()
186 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
522 struct xfs_buf *agbp, in xfs_inobt_insert_sprec() argument
528 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_insert_sprec()
534 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
615 struct xfs_buf *agbp, in xfs_ialloc_ag_alloc() argument
661 agi = agbp->b_addr; in xfs_ialloc_ag_alloc()
840 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, XFS_BTNUM_INO, in xfs_ialloc_ag_alloc()
865 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, in xfs_ialloc_ag_alloc()
[all …]
Dxfs_alloc.h55 struct xfs_buf *agbp; /* buffer for a.g. freelist header */ member
111 struct xfs_buf *agbp, /* buffer containing the agf structure */
140 struct xfs_buf *agbp, /* buffer for a.g. freelist header */
215 struct xfs_buf **agbp);
Dxfs_refcount_btree.h48 struct xfs_trans *tp, struct xfs_buf *agbp,
65 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_refcount.c1114 struct xfs_buf *agbp; in xfs_refcount_finish_one_cleanup() local
1118 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
1121 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one_cleanup()
1143 struct xfs_buf *agbp = NULL; in xfs_refcount_finish_one() local
1177 XFS_ALLOC_FLAG_FREEING, &agbp); in xfs_refcount_finish_one()
1181 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_refcount_finish_one()
1222 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one()
1688 struct xfs_buf *agbp; in xfs_refcount_recover_cow_leftovers() local
1716 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_refcount_recover_cow_leftovers()
1719 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_refcount_recover_cow_leftovers()
[all …]
Dxfs_alloc_btree.h60 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_btree_staging.h25 struct xfs_buf *agbp, const struct xfs_btree_ops *ops);
Dxfs_rmap_btree.h50 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_rmap.h115 int xfs_rmap_alloc(struct xfs_trans *tp, struct xfs_buf *agbp,
118 int xfs_rmap_free(struct xfs_trans *tp, struct xfs_buf *agbp,
Dxfs_ialloc_btree.h75 struct xfs_trans *tp, struct xfs_buf *agbp);
Dxfs_rmap.c696 struct xfs_buf *agbp, in xfs_rmap_free() argument
709 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_free()
950 struct xfs_buf *agbp, in xfs_rmap_alloc() argument
963 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_alloc()
2335 struct xfs_buf *agbp; in xfs_rmap_finish_one_cleanup() local
2339 agbp = rcur->bc_ag.agbp; in xfs_rmap_finish_one_cleanup()
2342 xfs_trans_brelse(tp, agbp); in xfs_rmap_finish_one_cleanup()
2366 struct xfs_buf *agbp = NULL; in xfs_rmap_finish_one() local
2400 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in xfs_rmap_finish_one()
2403 if (XFS_IS_CORRUPT(tp->t_mountp, !agbp)) in xfs_rmap_finish_one()
[all …]
Dxfs_ialloc.h62 struct xfs_buf **agbp, /* buf for a.g. inode header */
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_btree.h184 struct xfs_buf *agbp; member
/kernel/linux/linux-5.10/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, agno, XFS_BTNUM_CNT); in xfs_trim_extents()
135 xfs_buf_relse(agbp); in xfs_trim_extents()
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()
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, agno); in xfs_reflink_find_shared()
154 xfs_trans_brelse(tp, agbp); in xfs_reflink_find_shared()