Home
last modified time | relevance | path

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

/linux/fs/xfs/libxfs/
H A Dxfs_ialloc_btree.c41 cur->bc_ag.agbp); in xfs_inobt_dup_cursor()
49 cur->bc_ag.agbp); in xfs_finobt_dup_cursor()
58 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_set_root() local
59 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root()
63 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_ROOT | XFS_AGI_LEVEL); in xfs_inobt_set_root()
72 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_finobt_set_root() local
73 struct xfs_agi *agi = agbp->b_addr; in xfs_finobt_set_root()
77 xfs_ialloc_log_agi(cur->bc_tp, agbp, in xfs_finobt_set_root()
87 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_inobt_mod_blockcount() local
88 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_mod_blockcount()
[all …]
H A Dxfs_refcount_btree.c33 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_refcountbt_dup_cursor()
42 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_set_root() local
43 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_set_root()
44 struct xfs_perag *pag = agbp->b_pag; in xfs_refcountbt_set_root()
52 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
63 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_alloc_block() local
64 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_alloc_block()
89 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_alloc_block()
104 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_free_block() local
105 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_free_block()
[all …]
H A Dxfs_alloc_btree.c30 return xfs_bnobt_init_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ag.agbp, in xfs_bnobt_dup_cursor()
38 return xfs_cntbt_init_cursor(cur->bc_mp, cur->bc_tp, cur->bc_ag.agbp, in xfs_cntbt_dup_cursor()
49 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_set_root() local
50 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_set_root()
64 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
79 cur->bc_ag.agbp, &bno, 1); in xfs_allocbt_alloc_block()
102 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_allocbt_free_block() local
108 agbp, NULL, bno, 1); in xfs_allocbt_free_block()
113 xfs_extent_busy_insert(cur->bc_tp, pag_group(agbp->b_pag), bno, 1, in xfs_allocbt_free_block()
179 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_init_ptr_from_cur()
[all …]
H A Dxfs_rmap_btree.c60 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_rmapbt_dup_cursor()
69 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root() local
70 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root()
79 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
89 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_alloc_block() local
90 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_alloc_block()
97 error = xfs_alloc_get_freelist(pag, cur->bc_tp, cur->bc_ag.agbp, in xfs_rmapbt_alloc_block()
110 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
127 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_free_block() local
128 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_free_block()
[all …]
H A Dxfs_alloc.c544 struct xfs_buf *bp = cnt_cur->bc_ag.agbp; in xfs_alloc_fixup_longest()
902 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
905 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters()
907 agbp->b_pag->pagf_freeblks += len; in xfs_alloc_update_counters()
912 xfs_buf_mark_corrupt(agbp); in xfs_alloc_update_counters()
913 xfs_ag_mark_sick(agbp->b_pag, XFS_SICK_AG_AGF); in xfs_alloc_update_counters()
917 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
967 args->agbp, args->pag); in xfs_alloc_cur_setup()
977 args->agbp, args->pag); in xfs_alloc_cur_setup()
980 args->agbp, args->pag); in xfs_alloc_cur_setup()
[all …]
H A Dxfs_ialloc.c206 struct xfs_buf *agbp, in xfs_inobt_insert() argument
217 cur = xfs_finobt_init_cursor(pag, tp, agbp); in xfs_inobt_insert()
219 cur = xfs_inobt_init_cursor(pag, tp, agbp); in xfs_inobt_insert()
553 struct xfs_buf *agbp, in xfs_inobt_insert_sprec() argument
562 cur = xfs_inobt_init_cursor(pag, tp, agbp); in xfs_inobt_insert_sprec()
647 struct xfs_buf *agbp, in xfs_finobt_insert_sprec() argument
655 cur = xfs_finobt_init_cursor(pag, tp, agbp); in xfs_finobt_insert_sprec()
697 struct xfs_buf *agbp) in xfs_ialloc_ag_alloc() argument
741 agi = agbp->b_addr; in xfs_ialloc_ag_alloc()
913 error = xfs_inobt_insert_sprec(pag, tp, agbp, &rec); in xfs_ialloc_ag_alloc()
[all …]
H A Dxfs_ialloc_btree.h50 struct xfs_trans *tp, struct xfs_buf *agbp);
52 struct xfs_trans *tp, struct xfs_buf *agbp);
72 struct xfs_trans *tp, struct xfs_buf *agbp);
H A Dxfs_refcount_btree.h49 struct xfs_trans *tp, struct xfs_buf *agbp,
65 struct xfs_trans *tp, struct xfs_buf *agbp);
H A Dxfs_alloc.h37 struct xfs_buf *agbp; /* buffer for a.g. freelist header */ member
81 int xfs_free_ag_extent(struct xfs_trans *tp, struct xfs_buf *agbp,
200 struct xfs_buf **agbp);
H A Dxfs_alloc_btree.h62 struct xfs_trans *tp, struct xfs_buf *agbp);
H A Dxfs_btree_staging.h25 struct xfs_buf *agbp);
H A Dxfs_rmap.h119 int xfs_rmap_alloc(struct xfs_trans *tp, struct xfs_buf *agbp,
122 int xfs_rmap_free(struct xfs_trans *tp, struct xfs_buf *agbp,
H A Dxfs_btree_staging.c82 struct xfs_buf *agbp) in xfs_btree_commit_afakeroot() argument
90 cur->bc_ag.agbp = agbp; in xfs_btree_commit_afakeroot()
H A Dxfs_rmap_btree.h49 struct xfs_trans *tp, struct xfs_buf *agbp);
H A Dxfs_refcount.c1391 struct xfs_buf *agbp = NULL; in xfs_refcount_finish_one() local
1419 XFS_ALLOC_FLAG_FREEING, &agbp); in xfs_refcount_finish_one()
1423 *pcur = rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_finish_one()
2063 struct xfs_buf *agbp = NULL; in xfs_refcount_recover_cow_leftovers() local
2110 error = xfs_alloc_read_agf(to_perag(xg), tp, 0, &agbp); in xfs_refcount_recover_cow_leftovers()
2113 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, to_perag(xg)); in xfs_refcount_recover_cow_leftovers()
2120 if (agbp) in xfs_refcount_recover_cow_leftovers()
2121 xfs_trans_brelse(tp, agbp); in xfs_refcount_recover_cow_leftovers()
H A Dxfs_rmap.c964 struct xfs_buf *agbp, in xfs_rmap_free() argument
977 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_free()
1209 struct xfs_buf *agbp, in xfs_rmap_alloc() argument
1222 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_alloc()
2638 struct xfs_buf *agbp = NULL; in xfs_rmap_finish_init_cursor() local
2645 error = xfs_free_extent_fix_freelist(tp, pag, &agbp); in xfs_rmap_finish_init_cursor()
2650 if (XFS_IS_CORRUPT(tp->t_mountp, !agbp)) { in xfs_rmap_finish_init_cursor()
2654 *pcur = xfs_rmapbt_init_cursor(tp->t_mountp, tp, agbp, pag); in xfs_rmap_finish_init_cursor()
H A Dxfs_btree.h284 struct xfs_buf *agbp; member
/linux/fs/xfs/
H A Dxfs_discard.c187 struct xfs_buf *agbp; in xfs_trim_gather_extents() local
203 error = xfs_alloc_read_agf(pag, tp, 0, &agbp); in xfs_trim_gather_extents()
209 cur = xfs_bnobt_init_cursor(mp, tp, agbp, pag); in xfs_trim_gather_extents()
215 cur = xfs_cntbt_init_cursor(mp, tp, agbp, pag); in xfs_trim_gather_extents()
219 cur = xfs_cntbt_init_cursor(mp, tp, agbp, pag); in xfs_trim_gather_extents()
H A Dxfs_rmap_item.c440 struct xfs_buf *agbp = NULL; in xfs_rmap_finish_one_cleanup() local
444 agbp = rcur->bc_ag.agbp; in xfs_rmap_finish_one_cleanup()
446 if (error && agbp) in xfs_rmap_finish_one_cleanup()
447 xfs_trans_brelse(tp, agbp); in xfs_rmap_finish_one_cleanup()
H A Dxfs_refcount_item.c421 struct xfs_buf *agbp; in xfs_refcount_finish_one_cleanup() local
425 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
427 if (error && agbp) in xfs_refcount_finish_one_cleanup()
428 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one_cleanup()
H A Dxfs_reflink.c144 struct xfs_buf *agbp; in xfs_reflink_find_shared() local
153 error = xfs_alloc_read_agf(pag, tp, 0, &agbp); in xfs_reflink_find_shared()
157 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_reflink_find_shared()
161 xfs_trans_brelse(tp, agbp); in xfs_reflink_find_shared()