| /linux/fs/xfs/libxfs/ |
| H A D | xfs_rtgroup.h | 31 struct xfs_group rtg_group; member 69 return container_of(xg, struct xfs_rtgroup, rtg_group); in to_rtg() 72 static inline struct xfs_group *rtg_group(struct xfs_rtgroup *rtg) in rtg_group() function 74 return &rtg->rtg_group; in rtg_group() 79 return rtg->rtg_group.xg_mount; in rtg_mount() 84 return rtg->rtg_group.xg_gno; in rtg_rgno() 89 return rtg->rtg_group.xg_block_count; in rtg_blocks() 125 return to_rtg(xfs_group_hold(rtg_group(rtg))); in xfs_rtgroup_hold() 132 xfs_group_put(rtg_group(rtg)); in xfs_rtgroup_put() 148 xfs_group_rele(rtg_group(rtg)); in xfs_rtgroup_rele() [all …]
|
| H A D | xfs_rtgroup.c | 86 rtg_group(rtg)->xg_block_count = in xfs_rtgroup_calc_geometry() 88 rtg_group(rtg)->xg_min_gbno = xfs_rtgroup_min_block(mp, rgno); in xfs_rtgroup_calc_geometry() 107 error = xfs_group_insert(mp, rtg_group(rtg), rgno, XG_TYPE_RTG); in xfs_rtgroup_alloc() 183 rtg_group(rtg)->xg_block_count = rtg->rtg_extents * mp->m_sb.sb_rextsize; in xfs_update_last_rtgroup_size() 436 xfs_group_mark_sick(rtg_group(rtg), ops->sick); in xfs_rtginode_mark_sick()
|
| H A D | xfs_health.h | 258 xfs_group_has_sickness(rtg_group(rtg), (mask))
|
| H A D | xfs_rtbitmap.h | 29 xfs_rtblock_t start = xfs_group_start_fsb(rtg_group(rtg)); in xfs_rtx_to_rtb()
|
| H A D | xfs_rtrmap_btree.c | 518 cur->bc_group = xfs_group_hold(rtg_group(rtg)); in xfs_rtrmapbt_init_cursor() 624 cur->bc_group = xfs_group_hold(rtg_group(rtg)); in xfs_rtrmapbt_mem_cursor()
|
| H A D | xfs_rtrefcount_btree.c | 417 cur->bc_group = xfs_group_hold(rtg_group(rtg)); in xfs_rtrefcountbt_init_cursor()
|
| H A D | xfs_rtbitmap.c | 1147 xfs_extent_busy_insert(tp, rtg_group(rtg), in xfs_rtfree_blocks()
|
| /linux/fs/xfs/scrub/ |
| H A D | health.c | 177 xfs_group_mark_healthy(rtg_group(rtg), XFS_SICK_RG_INDIRECT); in xchk_mark_all_healthy() 258 xfs_group_mark_corrupt(rtg_group(rtg), mask); in xchk_update_health() 260 xfs_group_mark_healthy(rtg_group(rtg), mask); in xchk_update_health() 331 xfs_group_measure_sickness(rtg_group(rtg), &sick, &checked); in xchk_health_record()
|
| H A D | rtrmap_repair.c | 855 trace_xrep_rmap_live_update(rtg_group(rr->sc->sr.rtg), action, p); in xrep_rtrmapbt_live_update() 912 error = xfs_rmap_hook_add(rtg_group(sc->sr.rtg), &rr->rhook); in xrep_rtrmap_setup_scan() 934 xfs_rmap_hook_del(rtg_group(sc->sr.rtg), &rr->rhook); in xrep_rtrmap_teardown()
|
| H A D | reap.c | 947 trace_xreap_agextent_select(rtg_group(sc->sr.rtg), rgbno, len, in xreap_rgextent_select() 987 trace_xreap_dispose_unmap_extent(rtg_group(sc->sr.rtg), rgbno, in xreap_rgextent_iter() 995 trace_xreap_dispose_free_extent(rtg_group(sc->sr.rtg), rgbno, *rglenp); in xreap_rgextent_iter()
|
| H A D | common.c | 781 if (!xfs_group_intent_busy(rtg_group(sr->rtg))) in xchk_rtgroup_lock() 788 error = xfs_group_intent_drain(rtg_group(sr->rtg)); in xchk_rtgroup_lock()
|
| H A D | rtbitmap_repair.c | 516 struct xfs_group *xg = rtg_group(sc->sr.rtg); in xrep_rtbitmap()
|
| H A D | rtrefcount_repair.c | 189 trace_xrep_refc_found(rtg_group(rr->sc->sr.rtg), &irec); in xrep_rtrefc_stash()
|
| /linux/fs/xfs/ |
| H A D | xfs_health.c | 62 xfs_health_unmount_group(rtg_group(rtg), &warn); in xfs_health_unmount() 265 xfs_group_mark_sick(rtg_group(rtg), mask); in xfs_rgno_mark_sick() 404 xfs_group_measure_sickness(rtg_group(rtg), &sick, &checked); in xfs_fsop_geom_health() 467 xfs_group_measure_sickness(rtg_group(rtg), &sick, &checked); in xfs_rtgroup_geom_health()
|
| H A D | xfs_zone_gc.c | 658 *daddr = xfs_gbno_to_daddr(&oz->oz_rtg->rtg_group, 0); in xfs_zone_gc_alloc_blocks() 708 atomic_inc(&chunk->victim_rtg->rtg_group.xg_active_ref); in xfs_zone_gc_start_chunk() 795 atomic_inc(&chunk->victim_rtg->rtg_group.xg_active_ref); in xfs_zone_gc_split_write() 898 xfs_group_set_mark(&rtg->rtg_group, XFS_RTG_FREE); in xfs_zone_gc_finish_reset() 917 bio->bi_iter.bi_sector = xfs_gbno_to_daddr(&rtg->rtg_group, 0); in xfs_zone_gc_prepare_reset() 964 next = rtg_group(rtg)->xg_next_reset; in xfs_zone_gc_reset_zones() 965 rtg_group(rtg)->xg_next_reset = NULL; in xfs_zone_gc_reset_zones()
|
| H A D | xfs_discard.c | 649 trace_xfs_discard_toosmall(rtg_group(rtg), rgbno, len); in xfs_trim_gather_rtgroup_extent() 657 if (xfs_extent_busy_search(rtg_group(rtg), rgbno, len)) { in xfs_trim_gather_rtgroup_extent() 658 trace_xfs_discard_busy(rtg_group(rtg), rgbno, len); in xfs_trim_gather_rtgroup_extent() 662 xfs_extent_busy_insert_discard(rtg_group(rtg), rgbno, len, in xfs_trim_gather_rtgroup_extent()
|
| H A D | xfs_zone_alloc.c | 81 struct xfs_group *xg = &rtg->rtg_group; in xfs_zone_account_reclaimable() 775 *sector = xfs_gbno_to_daddr(&rtg->rtg_group, 0); in xfs_zone_alloc_blocks() 1036 xfs_group_set_mark(&rtg->rtg_group, XFS_RTG_FREE); in xfs_init_zone() 1042 atomic_inc(&rtg_group(rtg)->xg_active_ref); in xfs_init_zone()
|
| H A D | xfs_extent_busy.c | 676 xfs_extent_busy_wait_group(rtg_group(rtg)); in xfs_extent_busy_wait_all()
|
| H A D | xfs_fsmap.c | 795 info->group = rtg_group(rtg); in xfs_getfsmap_rtdev_rtbitmap() 976 info->group = rtg_group(rtg); in xfs_getfsmap_rtdev_rmapbt()
|
| H A D | xfs_rtalloc.c | 1805 busy = xfs_extent_busy_trim(rtg_group(rtg), minlen, in xfs_rtalloc_check_busy() 1873 error = xfs_extent_busy_flush(args->tp, rtg_group(args->rtg), in xfs_rtallocate_adjust_for_busy()
|
| H A D | xfs_reflink.c | 1085 error = xfs_refcount_recover_cow_leftovers(rtg_group(rtg)); in xfs_reflink_recover_cow()
|