Home
last modified time | relevance | path

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

/Linux-v4.19/fs/xfs/libxfs/
Dxfs_refcount_btree.c30 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_refcountbt_dup_cursor()
39 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_refcountbt_set_root() local
40 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_set_root()
51 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
62 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_refcountbt_alloc_block() local
63 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_alloc_block()
91 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_alloc_block()
106 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_refcountbt_free_block() local
107 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_free_block()
116 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_free_block()
[all …]
Dxfs_rmap_btree.c58 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_rmapbt_dup_cursor()
67 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_rmapbt_set_root() local
68 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_set_root()
80 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_rmapbt_set_root()
90 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_rmapbt_alloc_block() local
91 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_alloc_block()
96 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_private.a.agbp, in xfs_rmapbt_alloc_block()
114 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_RMAP_BLOCKS); in xfs_rmapbt_alloc_block()
127 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_rmapbt_free_block() local
128 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_free_block()
[all …]
Dxfs_ialloc_btree.c39 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_inobt_dup_cursor()
49 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_inobt_set_root() local
50 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_set_root()
54 xfs_ialloc_log_agi(cur->bc_tp, agbp, XFS_AGI_ROOT | XFS_AGI_LEVEL); in xfs_inobt_set_root()
63 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_finobt_set_root() local
64 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_finobt_set_root()
68 xfs_ialloc_log_agi(cur->bc_tp, agbp, in xfs_finobt_set_root()
220 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_inobt_init_ptr_from_cur()
232 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_finobt_init_ptr_from_cur()
408 struct xfs_buf *agbp, /* buffer for agi structure */ in xfs_inobt_init_cursor() argument
[all …]
Dxfs_alloc_btree.c29 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_allocbt_dup_cursor()
39 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_allocbt_set_root() local
40 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_set_root()
52 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_ROOTS | XFS_AGF_LEVELS); in xfs_allocbt_set_root()
66 error = xfs_alloc_get_freelist(cur->bc_tp, cur->bc_private.a.agbp, in xfs_allocbt_alloc_block()
90 struct xfs_buf *agbp = cur->bc_private.a.agbp; in xfs_allocbt_free_block() local
91 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_free_block()
96 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
117 struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp); in xfs_allocbt_update_lastrec()
166 xfs_alloc_log_agf(cur->bc_tp, cur->bc_private.a.agbp, XFS_AGF_LONGEST); in xfs_allocbt_update_lastrec()
[all …]
Dxfs_alloc.c680 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
683 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters()
693 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
750 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent()
758 args->agbp, in xfs_alloc_ag_vextent()
800 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
857 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
860 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_exact()
1045 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1158 ASSERT(ltbno + ltlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
[all …]
Dxfs_ialloc.c191 struct xfs_buf *agbp, in xfs_inobt_insert() argument
197 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_insert()
203 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
540 struct xfs_buf *agbp, in xfs_inobt_insert_sprec() argument
546 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_insert_sprec()
552 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
624 xfs_buf_t *agbp, /* alloc group buffer */ in xfs_ialloc_ag_alloc() argument
668 agi = XFS_BUF_TO_AGI(agbp); in xfs_ialloc_ag_alloc()
847 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, XFS_BTNUM_INO, in xfs_ialloc_ag_alloc()
872 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.c1061 struct xfs_buf *agbp; in xfs_refcount_finish_one_cleanup() local
1065 agbp = rcur->bc_private.a.agbp; in xfs_refcount_finish_one_cleanup()
1068 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one_cleanup()
1090 struct xfs_buf *agbp = NULL; in xfs_refcount_finish_one() local
1124 XFS_ALLOC_FLAG_FREEING, &agbp); in xfs_refcount_finish_one()
1127 if (!agbp) in xfs_refcount_finish_one()
1130 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_refcount_finish_one()
1171 xfs_trans_brelse(tp, agbp); in xfs_refcount_finish_one()
1622 struct xfs_buf *agbp; in xfs_refcount_recover_cow_leftovers() local
1650 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.h138 int xfs_rmap_alloc(struct xfs_trans *tp, struct xfs_buf *agbp,
141 int xfs_rmap_free(struct xfs_trans *tp, struct xfs_buf *agbp,
Dxfs_rmap.c657 struct xfs_buf *agbp, in xfs_rmap_free() argument
670 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_free()
894 struct xfs_buf *agbp, in xfs_rmap_alloc() argument
907 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_alloc()
2142 struct xfs_buf *agbp; in xfs_rmap_finish_one_cleanup() local
2146 agbp = rcur->bc_private.a.agbp; in xfs_rmap_finish_one_cleanup()
2149 xfs_trans_brelse(tp, agbp); in xfs_rmap_finish_one_cleanup()
2173 struct xfs_buf *agbp = NULL; in xfs_rmap_finish_one() local
2207 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in xfs_rmap_finish_one()
2210 if (!agbp) in xfs_rmap_finish_one()
[all …]
Dxfs_ialloc.h72 struct xfs_buf **agbp, /* buf for a.g. inode header */
Dxfs_btree.h210 struct xfs_buf *agbp; /* agf/agi buffer pointer */ member
/Linux-v4.19/fs/xfs/
Dxfs_discard.c34 struct xfs_buf *agbp; in xfs_trim_extents() local
48 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents()
49 if (error || !agbp) in xfs_trim_extents()
52 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT); in xfs_trim_extents()
58 be32_to_cpu(XFS_BUF_TO_AGF(agbp)->agf_longest), &i); in xfs_trim_extents()
76 ASSERT(flen <= be32_to_cpu(XFS_BUF_TO_AGF(agbp)->agf_longest)); in xfs_trim_extents()
132 xfs_buf_relse(agbp); in xfs_trim_extents()
Dxfs_itable.c337 xfs_buf_t *agbp; /* agi header buffer */ in xfs_bulkstat() local
383 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_bulkstat()
389 cur = xfs_inobt_init_cursor(mp, NULL, agbp, agno, in xfs_bulkstat()
462 xfs_buf_relse(agbp); in xfs_bulkstat()
549 struct xfs_buf *agbp = NULL; in xfs_inumbers() local
567 if (!agbp) { in xfs_inumbers()
568 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_inumbers()
572 cur = xfs_inobt_init_cursor(mp, NULL, agbp, agno, in xfs_inumbers()
615 xfs_buf_relse(agbp); in xfs_inumbers()
616 agbp = NULL; in xfs_inumbers()
[all …]
Dxfs_trans_extfree.c236 struct xfs_buf *agbp; in xfs_agfl_free_finish_item() local
249 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_agfl_free_finish_item()
251 error = xfs_free_agfl_block(tp, agno, agbno, agbp, in xfs_agfl_free_finish_item()
Dxfs_reflink.c150 struct xfs_buf *agbp; in xfs_reflink_find_shared() local
154 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_reflink_find_shared()
157 if (!agbp) in xfs_reflink_find_shared()
160 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_reflink_find_shared()
167 xfs_trans_brelse(tp, agbp); in xfs_reflink_find_shared()