| /linux/fs/xfs/libxfs/ |
| H A D | xfs_group.c | 37 struct xfs_group *xg; in xfs_group_get() local 40 xg = xa_load(&mp->m_groups[type].xa, index); in xfs_group_get() 41 if (xg) { in xfs_group_get() 42 trace_xfs_group_get(xg, _RET_IP_); in xfs_group_get() 43 ASSERT(atomic_read(&xg->xg_ref) >= 0); in xfs_group_get() 44 atomic_inc(&xg->xg_ref); in xfs_group_get() 47 return xg; in xfs_group_get() 52 struct xfs_group *xg) in xfs_group_hold() argument 54 ASSERT(atomic_read(&xg->xg_ref) > 0 || in xfs_group_hold() 55 atomic_read(&xg->xg_active_ref) > 0); in xfs_group_hold() [all …]
|
| H A D | xfs_health.h | 210 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()
|
| H A D | xfs_refcount.c | 2056 struct xfs_group *xg) in xfs_refcount_recover_cow_leftovers() argument 2058 struct xfs_mount *mp = xg->xg_mount; in xfs_refcount_recover_cow_leftovers() 2059 bool isrt = xg->xg_type == XG_TYPE_RTG; in xfs_refcount_recover_cow_leftovers() 2082 if (xfs_group_max_blocks(xg) >= XFS_MAX_RGBLOCKS) in xfs_refcount_recover_cow_leftovers() 2085 if (xfs_group_max_blocks(xg) > XFS_MAX_CRC_AG_BLOCKS) in xfs_refcount_recover_cow_leftovers() 2104 xfs_rtgroup_lock(to_rtg(xg), XFS_RTGLOCK_REFCOUNT); in xfs_refcount_recover_cow_leftovers() 2105 cur = xfs_rtrefcountbt_init_cursor(tp, to_rtg(xg)); in xfs_refcount_recover_cow_leftovers() 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() 2120 xfs_rtgroup_unlock(to_rtg(xg), XFS_RTGLOCK_REFCOUNT); in xfs_refcount_recover_cow_leftovers() [all …]
|
| H A D | xfs_ag.h | 95 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()
|
| H A D | xfs_rmap.h | 271 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);
|
| H A D | xfs_rtgroup.h | 67 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()
|
| H A D | xfs_refcount.h | 97 int xfs_refcount_recover_cow_leftovers(struct xfs_group *xg);
|
| H A D | xfs_rmap.c | 908 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()
|
| H A D | xfs_ag.c | 110 struct xfs_group *xg) in xfs_perag_uninit() argument 113 struct xfs_perag *pag = to_perag(xg); in xfs_perag_uninit()
|
| /linux/fs/xfs/ |
| H A D | xfs_drain.c | 109 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 127 trace_xfs_group_intent_rele(xg, __return_address); in xfs_group_intent_put() 128 xfs_defer_drain_rele(&xg->xg_intents_drain); in xfs_group_intent_put() 129 xfs_group_put(xg); in xfs_group_intent_put() [all …]
|
| H A D | xfs_health.c | 25 struct xfs_group *xg, in xfs_health_unmount_group() argument 31 xfs_group_measure_sickness(xg, &sick, &checked); in xfs_health_unmount_group() 33 trace_xfs_group_unfixed_corruption(xg, sick); in xfs_health_unmount_group() 180 struct xfs_group *xg, in xfs_group_check_mask() argument 183 if (xg->xg_type == XG_TYPE_AG) in xfs_group_check_mask() 192 struct xfs_group *xg, in xfs_group_mark_sick() argument 195 xfs_group_check_mask(xg, mask); in xfs_group_mark_sick() 196 trace_xfs_group_mark_sick(xg, mask); in xfs_group_mark_sick() 198 spin_lock(&xg->xg_state_lock); in xfs_group_mark_sick() 199 xg->xg_sick |= mask; in xfs_group_mark_sick() [all …]
|
| H A D | xfs_extent_busy.c | 32 struct xfs_group *xg, in xfs_extent_busy_insert_list() argument 38 struct xfs_extent_busy_tree *eb = xg->xg_busy_extents; in xfs_extent_busy_insert_list() 46 new->group = xfs_group_hold(xg); in xfs_extent_busy_insert_list() 53 trace_xfs_extent_busy(xg, bno, len); in xfs_extent_busy_insert_list() 83 struct xfs_group *xg, in xfs_extent_busy_insert() argument 88 xfs_extent_busy_insert_list(xg, bno, len, flags, &tp->t_busy); in xfs_extent_busy_insert() 93 struct xfs_group *xg, in xfs_extent_busy_insert_discard() argument 98 xfs_extent_busy_insert_list(xg, bno, len, XFS_EXTENT_BUSY_DISCARDED, in xfs_extent_busy_insert_discard() 113 struct xfs_group *xg, in xfs_extent_busy_search() argument 117 struct xfs_extent_busy_tree *eb = xg->xg_busy_extents; in xfs_extent_busy_search() [all …]
|
| H A D | xfs_extent_busy.h | 46 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);
|
| H A D | xfs_drain.h | 72 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
|
| H A D | xfs_notify_failure.c | 249 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()
|
| H A D | xfs_zone_alloc.c | 81 struct xfs_group *xg = &rtg->rtg_group; in xfs_zone_account_reclaimable() local 112 xg->xg_next_reset = zi->zi_reset_list; in xfs_zone_account_reclaimable() 113 zi->zi_reset_list = xg; in xfs_zone_account_reclaimable() 419 struct xfs_group *xg; in xfs_find_free_zone() local 422 xas_for_each_marked(&xas, xg, end, XFS_RTG_FREE) in xfs_find_free_zone() 423 if (atomic_inc_not_zero(&xg->xg_active_ref)) in xfs_find_free_zone() 431 zi->zi_free_zone_cursor = xg->xg_gno; in xfs_find_free_zone() 433 return xg; in xfs_find_free_zone() 475 struct xfs_group *xg; in xfs_open_zone() local 477 xg = xfs_find_free_zone(mp, zi->zi_free_zone_cursor, ULONG_MAX); in xfs_open_zone() [all …]
|
| H A D | xfs_fsmap.c | 378 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()
|
| /linux/fs/xfs/scrub/ |
| H A D | rtbitmap_repair.c | 516 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()
|
| H A D | trace.h | 1967 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, 1969 TP_ARGS(xg, agbno, len), 1978 __entry->dev = xg->xg_mount->m_super->s_dev; 1979 __entry->type = xg->xg_type; 1980 __entry->agno = xg->xg_gno; 1994 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, \ 1996 TP_ARGS(xg, agbno, len)) 2049 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, 2051 TP_ARGS(xg, agbno, len, crosslinked), 2061 __entry->dev = xg->xg_mount->m_super->s_dev; [all …]
|
| H A D | alloc_repair.c | 135 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()
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A D | p5040ds.dts | 414 hydra_xg_slot1: hydra-xg-slot1@0 { 426 hydra_xg_slot2: hydra-xg-slot2@2 {
|
| /linux/arch/s390/tools/ |
| H A D | opcodes.txt | 827 e382 xg RXY_RRRD
|