Home
last modified time | relevance | path

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

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_refcount_btree.c28 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_refcountbt_dup_cursor()
37 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_refcountbt_set_root() local
38 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_set_root()
49 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
60 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_refcountbt_alloc_block() local
61 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); 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_private.a.agbp; in xfs_refcountbt_free_block() local
105 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_free_block()
112 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_free_block()
[all …]
Dxfs_rmap_btree.c54 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_rmapbt_dup_cursor()
63 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_rmapbt_set_root() local
64 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_set_root()
76 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
86 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_rmapbt_alloc_block() local
87 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_alloc_block()
92 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_private.a.agbp, in xfs_rmapbt_alloc_block()
110 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
123 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_rmapbt_free_block() local
124 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_free_block()
[all …]
Dxfs_alloc_btree.c28 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_allocbt_dup_cursor()
38 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_allocbt_set_root() local
39 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_set_root()
51 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
65 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_private.a.agbp, in xfs_allocbt_alloc_block()
89 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_allocbt_free_block() local
90 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_free_block()
95 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
116 struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp); in xfs_allocbt_update_lastrec()
165 xfs_alloc_log_agf(cur->bc_tp, cur->bc_private.a.agbp, XFS_AGF_LONGEST); in xfs_allocbt_update_lastrec()
[all …]
Dxfs_ialloc_btree.c37 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_inobt_dup_cursor()
47 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_inobt_set_root() local
48 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); 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_private.a.agbp; in xfs_finobt_set_root() local
62 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_finobt_set_root()
66 xfs_ialloc_log_agi(cur->bc_tp, agbp, in xfs_finobt_set_root()
215 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_inobt_init_ptr_from_cur()
227 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_finobt_init_ptr_from_cur()
409 struct xfs_buf *agbp, /* buffer for agi structure */ in xfs_inobt_init_cursor() argument
[all …]
Dxfs_alloc.c677 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
680 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters()
690 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
736 (be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_flcount) <= in xfs_alloc_ag_vextent_small()
740 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
762 fbno < be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_small()
771 error = xfs_rmap_free(args->tp, args->agbp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
848 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent()
856 args->agbp, in xfs_alloc_ag_vextent()
898 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
[all …]
Dxfs_ialloc.c174 struct xfs_buf *agbp, in xfs_inobt_insert() argument
180 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); 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 = XFS_BUF_TO_AGI(agbp); in xfs_inobt_insert_sprec()
534 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
606 struct xfs_buf *agbp, in xfs_ialloc_ag_alloc() argument
652 agi = XFS_BUF_TO_AGI(agbp); in xfs_ialloc_ag_alloc()
831 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, XFS_BTNUM_INO, in xfs_ialloc_ag_alloc()
856 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
125 struct xfs_buf *agbp, /* buffer containing the agf structure */
154 struct xfs_buf *agbp, /* buffer for a.g. freelist header */
229 struct xfs_buf **agbp);
Dxfs_refcount.c1059 struct xfs_buf *agbp; in xfs_refcount_finish_one_cleanup() local
1063 agbp = rcur->bc_private.a.agbp; in xfs_refcount_finish_one_cleanup()
1066 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one_cleanup()
1088 struct xfs_buf *agbp = NULL; in xfs_refcount_finish_one() local
1122 XFS_ALLOC_FLAG_FREEING, &agbp); in xfs_refcount_finish_one()
1125 if (!agbp) in xfs_refcount_finish_one()
1128 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_refcount_finish_one()
1169 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one()
1612 struct xfs_buf *agbp; in xfs_refcount_recover_cow_leftovers() local
1640 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_refcount_recover_cow_leftovers()
[all …]
Dxfs_refcount_btree.h47 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_rmap.c649 struct xfs_buf *agbp, in xfs_rmap_free() argument
662 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_free()
886 struct xfs_buf *agbp, in xfs_rmap_alloc() argument
899 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_alloc()
2134 struct xfs_buf *agbp; in xfs_rmap_finish_one_cleanup() local
2138 agbp = rcur->bc_private.a.agbp; in xfs_rmap_finish_one_cleanup()
2141 xfs_trans_brelse(tp, agbp); in xfs_rmap_finish_one_cleanup()
2165 struct xfs_buf *agbp = NULL; in xfs_rmap_finish_one() local
2199 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in xfs_rmap_finish_one()
2202 if (!agbp) in xfs_rmap_finish_one()
[all …]
Dxfs_ialloc.h62 struct xfs_buf **agbp, /* buf for a.g. inode header */
Dxfs_btree.h210 struct xfs_buf *agbp; /* agf/agi buffer pointer */ member
/Linux-v5.4/fs/xfs/
Dxfs_discard.c32 struct xfs_buf *agbp; in xfs_trim_extents() local
46 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents()
47 if (error || !agbp) in xfs_trim_extents()
50 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT); in xfs_trim_extents()
56 be32_to_cpu(XFS_BUF_TO_AGF(agbp)->agf_longest), &i); in xfs_trim_extents()
74 ASSERT(flen <= be32_to_cpu(XFS_BUF_TO_AGF(agbp)->agf_longest)); in xfs_trim_extents()
130 xfs_buf_relse(agbp); in xfs_trim_extents()
Dxfs_extfree_item.c539 struct xfs_buf *agbp; in xfs_agfl_free_finish_item() local
552 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_agfl_free_finish_item()
554 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()
146 if (!agbp) in xfs_reflink_find_shared()
149 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_reflink_find_shared()
156 xfs_trans_brelse(tp, agbp); in xfs_reflink_find_shared()