/linux/fs/xfs/libxfs/ |
H A D | xfs_rtgroup.h | 93 xfs_rgnumber_t rgno) in xfs_rtgroup_get() argument 95 return to_rtg(xfs_group_get(mp, rgno, XG_TYPE_RTG)); in xfs_rtgroup_get() 116 xfs_rgnumber_t rgno) in xfs_rtgroup_grab() argument 118 return to_rtg(xfs_group_grab(mp, rgno, XG_TYPE_RTG)); in xfs_rtgroup_grab() 225 xfs_rgnumber_t rgno = xfs_rtb_to_rgno(mp, rtbno); in xfs_rtb_to_daddr() local 226 uint64_t start_bno = (xfs_rtblock_t)rgno * g->blocks; in xfs_rtb_to_daddr() 240 xfs_rgnumber_t rgno; in xfs_daddr_to_rtb() local 243 rgno = div_u64_rem(bno, g->blocks, &rgbno); in xfs_daddr_to_rtb() 244 return ((xfs_rtblock_t)rgno << g->blklog) + rgbno; in xfs_daddr_to_rtb() 251 int xfs_rtgroup_alloc(struct xfs_mount *mp, xfs_rgnumber_t rgno, [all …]
|
H A D | xfs_rtgroup.c | 43 xfs_rgnumber_t rgno) in xfs_rtgroup_min_block() argument 45 if (xfs_has_rtsb(mp) && rgno == 0) in xfs_rtgroup_min_block() 56 xfs_rgnumber_t rgno, in xfs_rtgroup_calc_geometry() argument 60 rtg->rtg_extents = __xfs_rtgroup_extents(mp, rgno, rgcount, rextents); in xfs_rtgroup_calc_geometry() 62 rtg_group(rtg)->xg_min_gbno = xfs_rtgroup_min_block(mp, rgno); in xfs_rtgroup_calc_geometry() 68 xfs_rgnumber_t rgno, in xfs_rtgroup_alloc() argument 79 xfs_rtgroup_calc_geometry(mp, rtg, rgno, rgcount, rextents); in xfs_rtgroup_alloc() 81 error = xfs_group_insert(mp, rtg_group(rtg), rgno, XG_TYPE_RTG); in xfs_rtgroup_alloc() 94 xfs_rgnumber_t rgno) in xfs_rtgroup_free() argument 96 xfs_group_free(mp, rgno, XG_TYPE_RTG, NULL); in xfs_rtgroup_free() [all …]
|
H A D | xfs_rtrmap_btree.h | 208 struct xfs_buftarg *btp, xfs_rgnumber_t rgno);
|
H A D | xfs_health.h | 205 void xfs_rgno_mark_sick(struct xfs_mount *mp, xfs_rgnumber_t rgno,
|
H A D | xfs_rtrmap_btree.c | 655 xfs_rgnumber_t rgno) in xfs_rtrmapbt_mem_init() argument 657 xfbt->owner = rgno; in xfs_rtrmapbt_mem_init()
|
/linux/fs/xfs/scrub/ |
H A D | rgsuper.c | 45 xfs_rgnumber_t rgno = sc->sm->sm_agno; in xchk_rgsuperblock() local 53 if (rgno != 0) in xchk_rgsuperblock() 62 error = xchk_rtgroup_init_existing(sc, rgno, &sc->sr); in xchk_rgsuperblock()
|
H A D | common.h | 15 bool xchk_process_rt_error(struct xfs_scrub *sc, xfs_rgnumber_t rgno, 137 int xchk_rtgroup_init(struct xfs_scrub *sc, xfs_rgnumber_t rgno, 143 xfs_rgnumber_t rgno, in xchk_rtgroup_init_existing() argument 146 int error = xchk_rtgroup_init(sc, rgno, sr); in xchk_rtgroup_init_existing() 157 # define xchk_rtgroup_init(sc, rgno, sr) (-EFSCORRUPTED) argument 158 # define xchk_rtgroup_init_existing(sc, rgno, sr) (-EFSCORRUPTED) argument
|
H A D | common.c | 131 xfs_rgnumber_t rgno, in xchk_process_rt_error() argument 135 return __xchk_process_error(sc, rgno, rgbno, error, in xchk_process_rt_error() 713 xfs_rgnumber_t rgno, in xchk_rtgroup_init() argument 719 sr->rtg = xfs_rtgroup_get(sc->mp, rgno); in xchk_rtgroup_init()
|
H A D | trace.h | 2308 TP_PROTO(struct xfs_mount *mp, xfs_rgnumber_t rgno, 2310 TP_ARGS(mp, rgno, usedlen, rmapbt_sz), 2313 __field(xfs_rgnumber_t, rgno) 2319 __entry->rgno = rgno; 2325 __entry->rgno, 3721 __field(xfs_rgnumber_t, rgno) 3729 __entry->rgno = rtg_rgno(rtg); 3737 __entry->rgno,
|
/linux/fs/xfs/ |
H A D | xfs_rtalloc.c | 780 xfs_rgnumber_t rgno = rtg_rgno(rtg); in xfs_growfs_rt_free_new() local 783 if (rgno < mp->m_sb.sb_rgcount) in xfs_growfs_rt_free_new() 784 start_rtx = xfs_rtgroup_extents(mp, rgno); in xfs_growfs_rt_free_new() 785 end_rtx = xfs_rtgroup_extents(nargs->mp, rgno); in xfs_growfs_rt_free_new() 791 if (xfs_has_rtsb(nargs->mp) && rgno == 0 && start_rtx == 0) in xfs_growfs_rt_free_new() 1030 xfs_rgnumber_t rgno = rtg_rgno(rtg); in xfs_last_rt_bmblock() local 1033 ASSERT(!mp->m_sb.sb_rgcount || rgno >= mp->m_sb.sb_rgcount - 1); in xfs_last_rt_bmblock() 1035 if (mp->m_sb.sb_rgcount && rgno == mp->m_sb.sb_rgcount - 1) { in xfs_last_rt_bmblock() 1109 xfs_rgnumber_t rgno, in xfs_growfs_rtg() argument 1120 rtg = xfs_rtgroup_grab(mp, rgno); in xfs_growfs_rtg() [all …]
|
H A D | xfs_health.c | 256 xfs_rgnumber_t rgno, in xfs_rgno_mark_sick() argument 259 struct xfs_rtgroup *rtg = xfs_rtgroup_get(mp, rgno); in xfs_rgno_mark_sick()
|
H A D | xfs_reflink.c | 1211 xfs_rgnumber_t rgno; in xfs_reflink_ag_has_free_space() local 1213 rgno = xfs_rtb_to_rgno(mp, fsb); in xfs_reflink_ag_has_free_space() 1214 rtg = xfs_rtgroup_get(mp, rgno); in xfs_reflink_ag_has_free_space()
|
H A D | xfs_trace.h | 1766 __field(xfs_rgnumber_t, rgno) 1778 __entry->rgno = rtg_rgno(rtg); 1790 __entry->rgno, 1807 __field(xfs_rgnumber_t, rgno) 1815 __entry->rgno = rtg_rgno(rtg); 1823 __entry->rgno,
|