Home
last modified time | relevance | path

Searched refs:pag (Results 1 – 25 of 68) sorted by relevance

123

/linux-6.1.9/fs/xfs/libxfs/
Dxfs_ag_resv.c70 struct xfs_perag *pag, in xfs_ag_resv_critical() argument
78 avail = pag->pagf_freeblks - pag->pag_rmapbt_resv.ar_reserved; in xfs_ag_resv_critical()
79 orig = pag->pag_meta_resv.ar_asked; in xfs_ag_resv_critical()
82 avail = pag->pagf_freeblks + pag->pagf_flcount - in xfs_ag_resv_critical()
83 pag->pag_meta_resv.ar_reserved; in xfs_ag_resv_critical()
84 orig = pag->pag_rmapbt_resv.ar_asked; in xfs_ag_resv_critical()
91 trace_xfs_ag_resv_critical(pag, type, avail); in xfs_ag_resv_critical()
95 avail < pag->pag_mount->m_agbtree_maxlevels, in xfs_ag_resv_critical()
96 pag->pag_mount, XFS_ERRTAG_AG_RESV_CRITICAL); in xfs_ag_resv_critical()
105 struct xfs_perag *pag, in xfs_ag_resv_needed() argument
[all …]
Dxfs_ag.h117 void xfs_perag_put(struct xfs_perag *pag);
127 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) in xfs_verify_agbno() argument
129 if (agbno >= pag->block_count) in xfs_verify_agbno()
131 if (agbno <= pag->min_block) in xfs_verify_agbno()
138 struct xfs_perag *pag, in xfs_verify_agbext() argument
145 if (!xfs_verify_agbno(pag, agbno)) in xfs_verify_agbext()
148 return xfs_verify_agbno(pag, agbno + len - 1); in xfs_verify_agbext()
156 xfs_verify_agino(struct xfs_perag *pag, xfs_agino_t agino) in xfs_verify_agino() argument
158 if (agino < pag->agino_min) in xfs_verify_agino()
160 if (agino > pag->agino_max) in xfs_verify_agino()
[all …]
Dxfs_ag.c46 struct xfs_perag *pag; in xfs_perag_get() local
50 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
51 if (pag) { in xfs_perag_get()
52 ASSERT(atomic_read(&pag->pag_ref) >= 0); in xfs_perag_get()
53 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get()
57 return pag; in xfs_perag_get()
69 struct xfs_perag *pag; in xfs_perag_get_tag() local
75 (void **)&pag, first, 1, tag); in xfs_perag_get_tag()
80 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get_tag()
82 trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_); in xfs_perag_get_tag()
[all …]
Dxfs_ag_resv.h9 int xfs_ag_resv_free(struct xfs_perag *pag);
10 int xfs_ag_resv_init(struct xfs_perag *pag, struct xfs_trans *tp);
12 bool xfs_ag_resv_critical(struct xfs_perag *pag, enum xfs_ag_resv_type type);
13 xfs_extlen_t xfs_ag_resv_needed(struct xfs_perag *pag,
16 void xfs_ag_resv_alloc_extent(struct xfs_perag *pag, enum xfs_ag_resv_type type,
18 void xfs_ag_resv_free_extent(struct xfs_perag *pag, enum xfs_ag_resv_type type,
23 struct xfs_perag *pag, in xfs_perag_resv() argument
28 return &pag->pag_meta_resv; in xfs_perag_resv()
30 return &pag->pag_rmapbt_resv; in xfs_perag_resv()
47 struct xfs_perag *pag; in xfs_ag_resv_rmapbt_alloc() local
[all …]
Dxfs_ialloc.c118 if (!xfs_verify_agino(cur->bc_ag.pag, irec->ir_startino)) in xfs_inobt_get_rec()
140 cur->bc_ag.pag->pag_agno); in xfs_inobt_get_rec()
175 struct xfs_perag *pag, in xfs_inobt_insert() argument
185 cur = xfs_inobt_init_cursor(mp, tp, agbp, pag, btnum); in xfs_inobt_insert()
245 ASSERT(freecount == cur->bc_ag.pag->pagi_freecount); in xfs_check_agi_freecount()
520 struct xfs_perag *pag, in xfs_inobt_insert_sprec() argument
530 cur = xfs_inobt_init_cursor(mp, tp, agbp, pag, btnum); in xfs_inobt_insert_sprec()
577 trace_xfs_irec_merge_pre(mp, pag->pag_agno, rec.ir_startino, in xfs_inobt_insert_sprec()
584 trace_xfs_irec_merge_post(mp, pag->pag_agno, nrec->ir_startino, in xfs_inobt_insert_sprec()
614 struct xfs_perag *pag) in xfs_ialloc_ag_alloc() argument
[all …]
Dxfs_rmap_btree.c57 cur->bc_ag.agbp, cur->bc_ag.pag); in xfs_rmapbt_dup_cursor()
74 cur->bc_ag.pag->pagf_levels[btnum] += inc; in xfs_rmapbt_set_root()
88 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_rmapbt_alloc_block() local
93 error = xfs_alloc_get_freelist(pag, cur->bc_tp, cur->bc_ag.agbp, in xfs_rmapbt_alloc_block()
98 trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1); in xfs_rmapbt_alloc_block()
104 xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false); in xfs_rmapbt_alloc_block()
110 xfs_ag_resv_rmapbt_alloc(cur->bc_mp, pag->pag_agno); in xfs_rmapbt_alloc_block()
123 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_rmapbt_free_block() local
128 trace_xfs_rmapbt_free_block(cur->bc_mp, pag->pag_agno, in xfs_rmapbt_free_block()
132 error = xfs_alloc_put_freelist(pag, cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block()
[all …]
Dxfs_alloc.c251 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_alloc_get_rec() local
266 if (!xfs_verify_agbext(pag, *bno, *len)) in xfs_alloc_get_rec()
275 pag->pag_agno); in xfs_alloc_get_rec()
430 ASSERT(args->pag->pagf_freeblks + args->pag->pagf_flcount >= in xfs_alloc_fix_len()
705 struct xfs_perag *pag, in xfs_alloc_read_agfl() argument
709 struct xfs_mount *mp = pag->pag_mount; in xfs_alloc_read_agfl()
715 XFS_AG_DADDR(mp, pag->pag_agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
793 args->agbp, args->pag, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
803 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
806 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
[all …]
Dxfs_refcount_btree.c32 cur->bc_ag.agbp, cur->bc_ag.pag); in xfs_refcountbt_dup_cursor()
43 struct xfs_perag *pag = agbp->b_pag; in xfs_refcountbt_set_root() local
49 pag->pagf_refcount_level += inc; in xfs_refcountbt_set_root()
71 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_alloc_block()
80 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_alloc_block()
86 ASSERT(args.agno == cur->bc_ag.pag->pag_agno); in xfs_refcountbt_alloc_block()
111 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_free_block()
181 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur()
216 struct xfs_perag *pag = bp->b_pag; in xfs_refcountbt_verify() local
230 if (pag && pag->pagf_init) { in xfs_refcountbt_verify()
[all …]
Dxfs_refcount.c53 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_le()
73 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_ge()
93 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_eq()
133 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_refcount_get_rec() local
149 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount)) in xfs_refcount_get_rec()
155 trace_xfs_refcount_get(cur->bc_mp, pag->pag_agno, irec); in xfs_refcount_get_rec()
161 pag->pag_agno); in xfs_refcount_get_rec()
182 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_update()
193 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_update()
210 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_insert()
[all …]
Dxfs_health.h112 void xfs_ag_mark_sick(struct xfs_perag *pag, unsigned int mask);
113 void xfs_ag_mark_healthy(struct xfs_perag *pag, unsigned int mask);
114 void xfs_ag_measure_sickness(struct xfs_perag *pag, unsigned int *sick,
145 xfs_ag_has_sickness(struct xfs_perag *pag, unsigned int mask) in xfs_ag_has_sickness() argument
149 xfs_ag_measure_sickness(pag, &sick, &checked); in xfs_ag_has_sickness()
175 xfs_ag_is_healthy(struct xfs_perag *pag) in xfs_ag_is_healthy() argument
177 return !xfs_ag_has_sickness(pag, -1U); in xfs_ag_is_healthy()
187 void xfs_ag_geom_health(struct xfs_perag *pag, struct xfs_ag_geometry *ageo);
Dxfs_ialloc_btree.c40 cur->bc_ag.agbp, cur->bc_ag.pag, cur->bc_btnum); in xfs_inobt_dup_cursor()
107 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_ag.pag->pag_agno, sbno); in __xfs_inobt_alloc_block()
240 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
252 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
432 struct xfs_perag *pag, in xfs_inobt_init_common() argument
451 atomic_inc(&pag->pag_ref); in xfs_inobt_init_common()
452 cur->bc_ag.pag = pag; in xfs_inobt_init_common()
462 struct xfs_perag *pag, in xfs_inobt_init_cursor() argument
468 cur = xfs_inobt_init_common(mp, tp, pag, btnum); in xfs_inobt_init_cursor()
482 struct xfs_perag *pag, in xfs_inobt_stage_cursor() argument
[all …]
Dxfs_alloc_btree.c30 cur->bc_ag.agbp, cur->bc_ag.pag, cur->bc_btnum); in xfs_allocbt_dup_cursor()
47 cur->bc_ag.pag->pagf_levels[btnum] += inc; in xfs_allocbt_set_root()
63 error = xfs_alloc_get_freelist(cur->bc_ag.pag, cur->bc_tp, in xfs_allocbt_alloc_block()
74 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.pag, bno, 1, false); in xfs_allocbt_alloc_block()
92 error = xfs_alloc_put_freelist(cur->bc_ag.pag, cur->bc_tp, agbp, NULL, in xfs_allocbt_free_block()
115 struct xfs_perag *pag; in xfs_allocbt_update_lastrec() local
159 pag = cur->bc_ag.agbp->b_pag; in xfs_allocbt_update_lastrec()
160 pag->pagf_longest = be32_to_cpu(len); in xfs_allocbt_update_lastrec()
227 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur()
292 struct xfs_perag *pag = bp->b_pag; in xfs_allocbt_verify() local
[all …]
Dxfs_alloc.h56 struct xfs_perag *pag; /* per-ag struct for this agno */ member
94 xfs_extlen_t xfs_alloc_longest_free_extent(struct xfs_perag *pag,
97 struct xfs_perag *pag);
98 int xfs_alloc_get_freelist(struct xfs_perag *pag, struct xfs_trans *tp,
100 int xfs_alloc_put_freelist(struct xfs_perag *pag, struct xfs_trans *tp,
171 int xfs_read_agf(struct xfs_perag *pag, struct xfs_trans *tp, int flags,
173 int xfs_alloc_read_agf(struct xfs_perag *pag, struct xfs_trans *tp, int flags,
175 int xfs_alloc_read_agfl(struct xfs_perag *pag, struct xfs_trans *tp,
180 int xfs_free_extent_fix_freelist(struct xfs_trans *tp, struct xfs_perag *pag,
/linux-6.1.9/fs/xfs/
Dxfs_extent_busy.c25 struct xfs_perag *pag, in xfs_extent_busy_insert() argument
36 new->agno = pag->pag_agno; in xfs_extent_busy_insert()
43 trace_xfs_extent_busy(tp->t_mountp, pag->pag_agno, bno, len); in xfs_extent_busy_insert()
45 spin_lock(&pag->pagb_lock); in xfs_extent_busy_insert()
46 rbp = &pag->pagb_tree.rb_node; in xfs_extent_busy_insert()
63 rb_insert_color(&new->rb_node, &pag->pagb_tree); in xfs_extent_busy_insert()
66 spin_unlock(&pag->pagb_lock); in xfs_extent_busy_insert()
81 struct xfs_perag *pag, in xfs_extent_busy_search() argument
90 spin_lock(&pag->pagb_lock); in xfs_extent_busy_search()
91 rbp = pag->pagb_tree.rb_node; in xfs_extent_busy_search()
[all …]
Dxfs_iwalk.c55 struct xfs_perag *pag; member
98 struct xfs_perag *pag, in xfs_iwalk_ichunk_ra() argument
114 xfs_btree_reada_bufs(mp, pag->pag_agno, agbno, in xfs_iwalk_ichunk_ra()
186 struct xfs_perag *pag = iwag->pag; in xfs_iwalk_ag_recs() local
194 trace_xfs_iwalk_ag_rec(mp, pag->pag_agno, irec); in xfs_iwalk_ag_recs()
200 error = iwag->inobt_walk_fn(mp, tp, pag->pag_agno, irec, in xfs_iwalk_ag_recs()
218 ino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_recs()
272 struct xfs_perag *pag = iwag->pag; in xfs_iwalk_ag_start() local
278 error = xfs_inobt_cur(mp, tp, pag, XFS_BTNUM_INO, curpp, agi_bpp); in xfs_iwalk_ag_start()
312 iwag->lastino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_start()
[all …]
Dxfs_filestream.c43 struct xfs_perag *pag; in xfs_filestream_peek_ag() local
46 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag()
47 ret = atomic_read(&pag->pagf_fstrms); in xfs_filestream_peek_ag()
48 xfs_perag_put(pag); in xfs_filestream_peek_ag()
57 struct xfs_perag *pag; in xfs_filestream_get_ag() local
60 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag()
61 ret = atomic_inc_return(&pag->pagf_fstrms); in xfs_filestream_get_ag()
62 xfs_perag_put(pag); in xfs_filestream_get_ag()
71 struct xfs_perag *pag; in xfs_filestream_put_ag() local
73 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
[all …]
Dxfs_icache.c49 static int xfs_icwalk_ag(struct xfs_perag *pag,
207 struct xfs_perag *pag) in xfs_blockgc_queue() argument
209 struct xfs_mount *mp = pag->pag_mount; in xfs_blockgc_queue()
215 if (radix_tree_tagged(&pag->pag_ici_root, XFS_ICI_BLOCKGC_TAG)) in xfs_blockgc_queue()
216 queue_delayed_work(pag->pag_mount->m_blockgc_wq, in xfs_blockgc_queue()
217 &pag->pag_blockgc_work, in xfs_blockgc_queue()
225 struct xfs_perag *pag, in xfs_perag_set_inode_tag() argument
229 struct xfs_mount *mp = pag->pag_mount; in xfs_perag_set_inode_tag()
232 lockdep_assert_held(&pag->pag_ici_lock); in xfs_perag_set_inode_tag()
234 was_tagged = radix_tree_tagged(&pag->pag_ici_root, tag); in xfs_perag_set_inode_tag()
[all …]
Dxfs_health.c27 struct xfs_perag *pag; in xfs_health_unmount() local
37 for_each_perag(mp, agno, pag) { in xfs_health_unmount()
38 xfs_ag_measure_sickness(pag, &sick, &checked); in xfs_health_unmount()
179 struct xfs_perag *pag, in xfs_ag_mark_sick() argument
183 trace_xfs_ag_mark_sick(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_sick()
185 spin_lock(&pag->pag_state_lock); in xfs_ag_mark_sick()
186 pag->pag_sick |= mask; in xfs_ag_mark_sick()
187 pag->pag_checked |= mask; in xfs_ag_mark_sick()
188 spin_unlock(&pag->pag_state_lock); in xfs_ag_mark_sick()
194 struct xfs_perag *pag, in xfs_ag_mark_healthy() argument
[all …]
Dxfs_iunlink_item.c34 xfs_perag_put(iup->pag); in xfs_iunlink_item_release()
83 trace_xfs_iunlink_update_dinode(mp, iup->pag->pag_agno, in xfs_iunlink_log_dinode()
144 struct xfs_perag *pag, in xfs_iunlink_log_inode() argument
150 ASSERT(xfs_verify_agino_or_null(pag, next_agino)); in xfs_iunlink_log_inode()
151 ASSERT(xfs_verify_agino_or_null(pag, ip->i_next_unlinked)); in xfs_iunlink_log_inode()
172 atomic_inc(&pag->pag_ref); in xfs_iunlink_log_inode()
173 iup->pag = pag; in xfs_iunlink_log_inode()
Dxfs_fsmap.c161 struct xfs_perag *pag; /* AG info, if applicable */ member
208 if (!info->pag) in xfs_getfsmap_is_shared()
213 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, info->pag); in xfs_getfsmap_is_shared()
315 info->pag ? info->pag->pag_agno : NULLAGNUMBER, rec); in xfs_getfsmap_helper()
358 fsb = XFS_AGB_TO_FSB(mp, cur->bc_ag.pag->pag_agno, rec->rm_startblock); in xfs_getfsmap_datadev_helper()
376 rec_daddr = XFS_AGB_TO_DADDR(mp, cur->bc_ag.pag->pag_agno, in xfs_getfsmap_datadev_bnobt_helper()
584 struct xfs_perag *pag; in __xfs_getfsmap_datadev() local
621 for_each_perag_range(mp, start_ag, end_ag, pag) { in __xfs_getfsmap_datadev()
626 info->pag = pag; in __xfs_getfsmap_datadev()
627 if (pag->pag_agno == end_ag) { in __xfs_getfsmap_datadev()
[all …]
/linux-6.1.9/fs/xfs/scrub/
Dfscounters.c70 struct xfs_perag *pag = NULL; in xchk_fscount_warmup() local
74 for_each_perag(mp, agno, pag) { in xchk_fscount_warmup()
77 if (pag->pagi_init && pag->pagf_init) in xchk_fscount_warmup()
81 error = xfs_ialloc_read_agi(pag, sc->tp, &agi_bp); in xchk_fscount_warmup()
84 error = xfs_alloc_read_agf(pag, sc->tp, 0, &agf_bp); in xchk_fscount_warmup()
92 if (!pag->pagi_init || !pag->pagf_init) { in xchk_fscount_warmup()
107 if (pag) in xchk_fscount_warmup()
108 xfs_perag_put(pag); in xchk_fscount_warmup()
182 struct xfs_perag *pag; in xchk_fscount_aggregate_agcounts() local
193 for_each_perag(mp, agno, pag) { in xchk_fscount_aggregate_agcounts()
[all …]
Dagheader_repair.c109 if (!xfs_verify_agbno(sc->sa.pag, agbno)) in xrep_agf_check_agfl_block()
133 return xfs_verify_agbno(sc->sa.pag, fab->root) && in xrep_check_btree_root()
200 agf->agf_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agf_init_header()
201 agf->agf_length = cpu_to_be32(sc->sa.pag->block_count); in xrep_agf_init_header()
209 ASSERT(sc->sa.pag->pagf_init); in xrep_agf_init_header()
210 sc->sa.pag->pagf_init = 0; in xrep_agf_init_header()
259 sc->sa.pag, XFS_BTNUM_BNO); in xrep_agf_calc_from_btrees()
273 sc->sa.pag, XFS_BTNUM_CNT); in xrep_agf_calc_from_btrees()
281 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agf_calc_from_btrees()
294 sc->sa.pag); in xrep_agf_calc_from_btrees()
[all …]
Drepair.c161 struct xfs_perag *pag, in xrep_ag_has_space() argument
165 return !xfs_ag_resv_critical(pag, XFS_AG_RESV_RMAPBT) && in xrep_ag_has_space()
166 !xfs_ag_resv_critical(pag, XFS_AG_RESV_METADATA) && in xrep_ag_has_space()
167 pag->pagf_freeblks > xfs_ag_resv_needed(pag, type) + nr_blocks; in xrep_ag_has_space()
181 struct xfs_perag *pag; in xrep_calc_ag_resblks() local
196 pag = xfs_perag_get(mp, sm->sm_agno); in xrep_calc_ag_resblks()
197 if (pag->pagi_init) { in xrep_calc_ag_resblks()
199 icount = pag->pagi_count; in xrep_calc_ag_resblks()
202 error = xfs_ialloc_read_agi(pag, NULL, &bp); in xrep_calc_ag_resblks()
204 icount = pag->pagi_count; in xrep_calc_ag_resblks()
[all …]
Dcommon.c414 ASSERT(!sa->pag); in xchk_ag_read_headers()
415 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers()
416 if (!sa->pag) in xchk_ag_read_headers()
419 error = xfs_ialloc_read_agi(sa->pag, sc->tp, &sa->agi_bp); in xchk_ag_read_headers()
423 error = xfs_alloc_read_agf(sa->pag, sc->tp, 0, &sa->agf_bp); in xchk_ag_read_headers()
427 error = xfs_alloc_read_agfl(sa->pag, sc->tp, &sa->agfl_bp); in xchk_ag_read_headers()
469 xchk_ag_btree_healthy_enough(sc, sa->pag, XFS_BTNUM_BNO)) { in xchk_ag_btcur_init()
472 sa->pag, XFS_BTNUM_BNO); in xchk_ag_btcur_init()
476 xchk_ag_btree_healthy_enough(sc, sa->pag, XFS_BTNUM_CNT)) { in xchk_ag_btcur_init()
479 sa->pag, XFS_BTNUM_CNT); in xchk_ag_btcur_init()
[all …]
Dhealth.c132 struct xfs_perag *pag; in xchk_update_health() local
142 pag = xfs_perag_get(sc->mp, sc->sm->sm_agno); in xchk_update_health()
144 xfs_ag_mark_sick(pag, sc->sick_mask); in xchk_update_health()
146 xfs_ag_mark_healthy(pag, sc->sick_mask); in xchk_update_health()
147 xfs_perag_put(pag); in xchk_update_health()
179 struct xfs_perag *pag, in xchk_ag_btree_healthy_enough() argument
227 if (xfs_ag_has_sickness(pag, mask)) { in xchk_ag_btree_healthy_enough()

123