Home
last modified time | relevance | path

Searched refs:to_perag (Results 1 – 18 of 18) sorted by relevance

/linux/fs/xfs/libxfs/
H A Dxfs_ag.h95 static inline struct xfs_perag *to_perag(struct xfs_group *xg) in to_perag() function
150 return to_perag(xfs_group_get(mp, agno, XG_TYPE_AG)); in xfs_perag_get()
157 return to_perag(xfs_group_hold(pag_group(pag))); in xfs_perag_hold()
173 return to_perag(xfs_group_grab(mp, agno, XG_TYPE_AG)); in xfs_perag_grab()
190 return to_perag(xfs_group_next_range(mp, pag ? pag_group(pag) : NULL, in xfs_perag_next_range()
H A Dxfs_alloc_btree.c31 to_perag(cur->bc_group)); in xfs_bnobt_dup_cursor()
39 to_perag(cur->bc_group)); in xfs_cntbt_dup_cursor()
48 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_allocbt_set_root()
78 error = xfs_alloc_get_freelist(to_perag(cur->bc_group), cur->bc_tp, in xfs_allocbt_alloc_block()
107 error = xfs_alloc_put_freelist(to_perag(cur->bc_group), cur->bc_tp, in xfs_allocbt_free_block()
H A Dxfs_rmap_btree.c60 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_rmapbt_dup_cursor()
71 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_rmapbt_set_root()
91 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_rmapbt_alloc_block()
129 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_rmapbt_free_block()
H A Dxfs_ialloc_btree.c40 return xfs_inobt_init_cursor(to_perag(cur->bc_group), cur->bc_tp, in xfs_inobt_dup_cursor()
48 return xfs_finobt_init_cursor(to_perag(cur->bc_group), cur->bc_tp, in xfs_finobt_dup_cursor()
115 args.pag = to_perag(cur->bc_group); in __xfs_inobt_alloc_block()
H A Dxfs_refcount_btree.c33 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_refcountbt_dup_cursor()
71 args.pag = to_perag(cur->bc_group); in xfs_refcountbt_alloc_block()
H A Dxfs_refcount.c178 return xfs_refcount_check_irec(to_perag(cur->bc_group), irec); in xfs_refcount_check_btrec()
1359 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_refcount_continue_op()
1415 struct xfs_perag *pag = to_perag(ri->ri_group); in xfs_refcount_finish_one()
2107 error = xfs_alloc_read_agf(to_perag(xg), tp, 0, &agbp); in xfs_refcount_recover_cow_leftovers()
2110 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, to_perag(xg)); in xfs_refcount_recover_cow_leftovers()
H A Dxfs_ialloc.c173 fa = xfs_inobt_check_irec(to_perag(cur->bc_group), irec); in xfs_inobt_get_rec()
280 to_perag(cur->bc_group)->pagi_freecount); in xfs_check_agi_freecount()
2933 fa = xfs_inobt_check_irec(to_perag(cur->bc_group), &irec); in xfs_ialloc_count_inodes_rec()
H A Dxfs_ag.c113 struct xfs_perag *pag = to_perag(xg); in xfs_perag_uninit()
H A Dxfs_alloc.c304 fa = xfs_alloc_check_irec(to_perag(cur->bc_group), &irec); in xfs_alloc_get_rec()
541 struct xfs_perag *pag = to_perag(cnt_cur->bc_group); in xfs_alloc_fixup_longest()
4078 fa = xfs_alloc_check_irec(to_perag(cur->bc_group), &irec); in xfs_alloc_query_range_helper()
H A Dxfs_btree.c234 struct xfs_perag *pag = to_perag(cur->bc_group); in __xfs_btree_check_agblock()
340 if (!xfs_verify_agbno(to_perag(cur->bc_group), in __xfs_btree_check_ptr()
1014 struct xfs_perag *pag = to_perag(cur->bc_group); in xfs_btree_readahead_agblock()
1088 *daddr = xfs_agbno_to_daddr(to_perag(cur->bc_group), in xfs_btree_ptr_to_daddr()
H A Dxfs_rmap.c340 return xfs_rmap_check_irec(to_perag(cur->bc_group), irec); in xfs_rmap_check_btrec()
2637 struct xfs_perag *pag = to_perag(ri->ri_group); in xfs_rmap_finish_init_cursor()
/linux/fs/xfs/scrub/
H A Dialloc.c261 struct xfs_perag *pag = to_perag(bs->cur->bc_group); in xchk_iallocbt_chunk()
321 fsino = xfs_agino_to_ino(to_perag(bs->cur->bc_group), agino); in xchk_iallocbt_check_cluster_ifree()
397 imap.im_blkno = xfs_agbno_to_daddr(to_perag(bs->cur->bc_group), agbno); in xchk_iallocbt_check_cluster()
408 trace_xchk_iallocbt_check_cluster(to_perag(bs->cur->bc_group), in xchk_iallocbt_check_cluster()
586 if (xfs_inobt_check_irec(to_perag(bs->cur->bc_group), &irec) != NULL) { in xchk_iallocbt_rec()
H A Dbmap_repair.c208 if (!xfs_verify_agbext(to_perag(cur->bc_group), rec->rm_startblock, in xrep_bmap_check_fork_rmap()
280 fsbno = xfs_agbno_to_fsb(to_perag(cur->bc_group), rec->rm_startblock); in xrep_bmap_walk_rmap()
H A Drefcount.c456 if (xfs_refcount_check_irec(to_perag(bs->cur->bc_group), &irec) != in xchk_refcountbt_rec()
H A Drmap_repair.c694 if (xfs_inobt_check_irec(to_perag(cur->bc_group), &irec) != NULL) in xrep_rmap_walk_inobt()
/linux/fs/xfs/
H A Dxfs_notify_failure.c292 struct xfs_perag *pag = to_perag(xg); in xfs_dax_notify_dev_failure()
H A Dxfs_fsmap.c227 to_perag(info->group)); in xfs_getfsmap_is_shared()
620 to_perag(info->group)); in xfs_getfsmap_datadev_rmapbt_query()
653 to_perag(info->group)); in xfs_getfsmap_datadev_bnobt_query()
H A Dxfs_extfree_item.c555 error = __xfs_free_extent(tp, to_perag(xefi->xefi_group), agbno, in xfs_extent_free_finish_item()
601 error = xfs_alloc_read_agf(to_perag(xefi->xefi_group), tp, 0, &agbp); in xfs_agfl_free_finish_item()