Home
last modified time | relevance | path

Searched refs:xg (Results 1 – 23 of 23) sorted by relevance

/fs/xfs/libxfs/
A Dxfs_group.c41 if (xg) { in xfs_group_get()
47 return xg; in xfs_group_get()
59 return xg; in xfs_group_hold()
82 if (xg) { in xfs_group_grab()
85 xg = NULL; in xfs_group_grab()
88 return xg; in xfs_group_grab()
108 if (xg) { in xfs_group_next_range()
129 if (xg) { in xfs_group_grab_next_mark()
136 if (xg) { in xfs_group_grab_next_mark()
139 xg = NULL; in xfs_group_grab_next_mark()
[all …]
A Dxfs_group.h96 struct xfs_group *xg) in xfs_group_max_blocks() argument
98 return xg->xg_mount->m_groups[xg->xg_type].blocks; in xfs_group_max_blocks()
103 struct xfs_group *xg) in xfs_group_start_fsb() argument
106 xg->xg_mount->m_groups[xg->xg_type].blklog; in xfs_group_start_fsb()
111 struct xfs_group *xg, in xfs_gbno_to_fsb() argument
119 struct xfs_group *xg, in xfs_gbno_to_daddr() argument
156 struct xfs_group *xg, in xfs_verify_gbno() argument
159 if (gbno >= xg->xg_block_count) in xfs_verify_gbno()
161 if (gbno < xg->xg_min_gbno) in xfs_verify_gbno()
168 struct xfs_group *xg, in xfs_verify_gbext() argument
[all …]
A Dxfs_health.h210 void xfs_group_mark_sick(struct xfs_group *xg, unsigned int mask);
213 void xfs_group_mark_corrupt(struct xfs_group *xg, unsigned int mask);
214 void xfs_group_mark_healthy(struct xfs_group *xg, unsigned int mask);
215 void xfs_group_measure_sickness(struct xfs_group *xg, unsigned int *sick,
243 struct xfs_group *xg, in xfs_group_has_sickness() argument
248 xfs_group_measure_sickness(xg, &sick, &checked); in xfs_group_has_sickness()
A Dxfs_refcount.c2057 struct xfs_group *xg) in xfs_refcount_recover_cow_leftovers() argument
2059 struct xfs_mount *mp = xg->xg_mount; in xfs_refcount_recover_cow_leftovers()
2060 bool isrt = xg->xg_type == XG_TYPE_RTG; in xfs_refcount_recover_cow_leftovers()
2083 if (xfs_group_max_blocks(xg) >= XFS_MAX_RGBLOCKS) in xfs_refcount_recover_cow_leftovers()
2086 if (xfs_group_max_blocks(xg) > XFS_MAX_CRC_AG_BLOCKS) in xfs_refcount_recover_cow_leftovers()
2105 xfs_rtgroup_lock(to_rtg(xg), XFS_RTGLOCK_REFCOUNT); in xfs_refcount_recover_cow_leftovers()
2106 cur = xfs_rtrefcountbt_init_cursor(tp, to_rtg(xg)); in xfs_refcount_recover_cow_leftovers()
2108 error = xfs_alloc_read_agf(to_perag(xg), tp, 0, &agbp); in xfs_refcount_recover_cow_leftovers()
2111 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, to_perag(xg)); in xfs_refcount_recover_cow_leftovers()
2121 xfs_rtgroup_unlock(to_rtg(xg), XFS_RTGLOCK_REFCOUNT); in xfs_refcount_recover_cow_leftovers()
[all …]
A Dxfs_ag.h95 static inline struct xfs_perag *to_perag(struct xfs_group *xg) in to_perag() argument
97 return container_of(xg, struct xfs_perag, pag_group); in to_perag()
A Dxfs_rmap.h271 int xfs_rmap_hook_add(struct xfs_group *xg, struct xfs_rmap_hook *hook);
272 void xfs_rmap_hook_del(struct xfs_group *xg, struct xfs_rmap_hook *hook);
A Dxfs_rtgroup.h67 static inline struct xfs_rtgroup *to_rtg(struct xfs_group *xg) in to_rtg() argument
69 return container_of(xg, struct xfs_rtgroup, rtg_group); in to_rtg()
A Dxfs_refcount.h97 int xfs_refcount_recover_cow_leftovers(struct xfs_group *xg);
A Dxfs_rmap.c908 struct xfs_group *xg, in xfs_rmap_update_hook() argument
923 if (xg) in xfs_rmap_update_hook()
924 xfs_hooks_call(&xg->xg_rmap_update_hooks, op, &p); in xfs_rmap_update_hook()
931 struct xfs_group *xg, in xfs_rmap_hook_add() argument
934 return xfs_hooks_add(&xg->xg_rmap_update_hooks, &hook->rmap_hook); in xfs_rmap_hook_add()
940 struct xfs_group *xg, in xfs_rmap_hook_del() argument
943 xfs_hooks_del(&xg->xg_rmap_update_hooks, &hook->rmap_hook); in xfs_rmap_hook_del()
A Dxfs_ag.c110 struct xfs_group *xg) in xfs_perag_uninit() argument
113 struct xfs_perag *pag = to_perag(xg); in xfs_perag_uninit()
/fs/xfs/
A Dxfs_drain.c109 struct xfs_group *xg; in xfs_group_intent_get() local
111 xg = xfs_group_get_by_fsb(mp, fsbno, type); in xfs_group_intent_get()
112 if (!xg) in xfs_group_intent_get()
114 trace_xfs_group_intent_hold(xg, __return_address); in xfs_group_intent_get()
115 xfs_defer_drain_grab(&xg->xg_intents_drain); in xfs_group_intent_get()
116 return xg; in xfs_group_intent_get()
125 struct xfs_group *xg) in xfs_group_intent_put() argument
128 xfs_defer_drain_rele(&xg->xg_intents_drain); in xfs_group_intent_put()
129 xfs_group_put(xg); in xfs_group_intent_put()
138 struct xfs_group *xg) in xfs_group_intent_drain() argument
[all …]
A Dxfs_health.c25 struct xfs_group *xg, in xfs_health_unmount_group() argument
180 struct xfs_group *xg, in xfs_group_check_mask() argument
192 struct xfs_group *xg, in xfs_group_mark_sick() argument
199 xg->xg_sick |= mask; in xfs_group_mark_sick()
208 struct xfs_group *xg, in xfs_group_mark_corrupt() argument
215 xg->xg_sick |= mask; in xfs_group_mark_corrupt()
216 xg->xg_checked |= mask; in xfs_group_mark_corrupt()
225 struct xfs_group *xg, in xfs_group_mark_healthy() argument
232 xg->xg_sick &= ~mask; in xfs_group_mark_healthy()
242 struct xfs_group *xg, in xfs_group_measure_sickness() argument
[all …]
A Dxfs_extent_busy.c32 struct xfs_group *xg, in xfs_extent_busy_insert_list() argument
83 struct xfs_group *xg, in xfs_extent_busy_insert() argument
93 struct xfs_group *xg, in xfs_extent_busy_insert_discard() argument
113 struct xfs_group *xg, in xfs_extent_busy_search() argument
160 struct xfs_group *xg, in xfs_extent_busy_update_extent() argument
309 struct xfs_group *xg, in xfs_extent_busy_reuse() argument
356 struct xfs_group *xg, in xfs_extent_busy_trim() argument
591 xfs_group_put(xg); in xfs_extent_busy_clear()
612 struct xfs_group *xg, in xfs_extent_busy_flush() argument
650 struct xfs_group *xg) in xfs_extent_busy_wait_group() argument
[all …]
A Dxfs_extent_busy.h46 void xfs_extent_busy_insert(struct xfs_trans *tp, struct xfs_group *xg,
48 void xfs_extent_busy_insert_discard(struct xfs_group *xg, xfs_agblock_t bno,
51 int xfs_extent_busy_search(struct xfs_group *xg, xfs_agblock_t bno,
53 void xfs_extent_busy_reuse(struct xfs_group *xg, xfs_agblock_t fbno,
55 bool xfs_extent_busy_trim(struct xfs_group *xg, xfs_extlen_t minlen,
58 int xfs_extent_busy_flush(struct xfs_trans *tp, struct xfs_group *xg,
61 bool xfs_extent_busy_list_empty(struct xfs_group *xg, unsigned int *busy_gen);
A Dxfs_notify_failure.c249 struct xfs_group *xg = NULL; in xfs_dax_notify_dev_failure() local
285 while ((xg = xfs_group_next_range(mp, xg, start_gno, end_gno, type))) { in xfs_dax_notify_dev_failure()
292 struct xfs_perag *pag = to_perag(xg); in xfs_dax_notify_dev_failure()
302 rtg = to_rtg(xg); in xfs_dax_notify_dev_failure()
312 if (xg->xg_gno == start_gno) in xfs_dax_notify_dev_failure()
315 if (xg->xg_gno == end_gno) in xfs_dax_notify_dev_failure()
320 notify.blockcount = min(xg->xg_block_count, in xfs_dax_notify_dev_failure()
332 xfs_group_put(xg); in xfs_dax_notify_dev_failure()
A Dxfs_drain.h72 int xfs_group_intent_drain(struct xfs_group *xg);
73 bool xfs_group_intent_busy(struct xfs_group *xg);
83 #define xfs_group_intent_put(xg) xfs_group_put(xg) argument
A Dxfs_zone_alloc.c73 struct xfs_group *xg = &rtg->rtg_group; in xfs_zone_account_reclaimable() local
99 xfs_group_clear_mark(xg, XFS_RTG_RECLAIMABLE); in xfs_zone_account_reclaimable()
107 xg->xg_next_reset = zi->zi_reset_list; in xfs_zone_account_reclaimable()
108 zi->zi_reset_list = xg; in xfs_zone_account_reclaimable()
122 xfs_group_set_mark(xg, XFS_RTG_RECLAIMABLE); in xfs_zone_account_reclaimable()
423 struct xfs_group *xg; in xfs_find_free_zone() local
435 zi->zi_free_zone_cursor = xg->xg_gno; in xfs_find_free_zone()
437 return xg; in xfs_find_free_zone()
479 struct xfs_group *xg; in xfs_open_zone() local
482 if (!xg) in xfs_open_zone()
[all …]
A Dxfs_discard.c123 struct xfs_group *xg = busyp->group; in xfs_discard_extents() local
125 xfs_group_type_buftarg(xg->xg_mount, xg->xg_type); in xfs_discard_extents()
127 trace_xfs_discard_extent(xg, busyp->bno, busyp->length); in xfs_discard_extents()
130 xfs_gbno_to_daddr(xg, busyp->bno), in xfs_discard_extents()
A Dxfs_trace.h322 TP_ARGS(xg, caller_ip),
334 __entry->agno = xg->xg_gno;
351 TP_ARGS(xg, caller_ip))
1935 TP_ARGS(xg, agbno, len),
1962 TP_ARGS(xg, agbno, len))
2802 TP_ARGS(xg, agbno, len),
2829 TP_ARGS(xg, agbno, len))
4584 TP_ARGS(xg, flags),
4605 TP_ARGS(xg, flags))
5051 TP_ARGS(xg, caller_ip),
[all …]
A Dxfs_fsmap.c378 struct xfs_group *xg, in xfs_getfsmap_group_helper() argument
395 frec->start_daddr = xfs_gbno_to_daddr(xg, startblock); in xfs_getfsmap_group_helper()
397 frec->len_daddr = XFS_FSB_TO_BB(xg->xg_mount, blockcount); in xfs_getfsmap_group_helper()
/fs/xfs/scrub/
A Drtbitmap_repair.c516 struct xfs_group *xg = rtg_group(sc->sr.rtg); in xrep_rtbitmap() local
572 if (!xfs_extent_busy_list_empty(xg, &busy_gen)) { in xrep_rtbitmap()
573 error = xfs_extent_busy_flush(sc->tp, xg, busy_gen, 0); in xrep_rtbitmap()
A Dtrace.h1969 TP_ARGS(xg, agbno, len),
1979 __entry->type = xg->xg_type;
1980 __entry->agno = xg->xg_gno;
1996 TP_ARGS(xg, agbno, len))
2017 __entry->type = xg->xg_type;
2018 __entry->agno = xg->xg_gno;
2129 TP_ARGS(xg, rec),
2141 __entry->agno = xg->xg_gno;
2142 __entry->type = xg->xg_type;
2731 TP_ARGS(xg, op, p),
[all …]
A Dalloc_repair.c135 struct xfs_group *xg = pag_group(sc->sa.pag); in xrep_setup_ag_allocbt() local
142 if (xfs_extent_busy_list_empty(xg, &busy_gen)) in xrep_setup_ag_allocbt()
144 return xfs_extent_busy_flush(sc->tp, xg, busy_gen, 0); in xrep_setup_ag_allocbt()

Completed in 60 milliseconds