On Thu, Feb 20, 2025 at 03:40:33PM -0500, Kent Overstreet wrote: > accidentally inserting a folio < mapping min order causes the readahead > code to go into an infinite loop, which is unpleasant. We already have: VM_BUG_ON_FOLIO(folio_order(folio) < mapping_min_folio_order(mapping), folio); If you're not enabling CONFIG_DEBUG_VM in your testing, I think that's an oversight on your part.