> +void > +xfs_destroy_perag( > + xfs_mount_t *mp, > + xfs_agnumber_t agstart, > + xfs_agnumber_t agend) Not sure xfs_destroy_perag is the right name, as it frees a range of AGs, how about xfs_free_unuses_perag_range? Also a comment explaining that this must never be used for AGs that have been visible (that is included in mp->m_sb.sb_agcount) would probably be useful.