diff --git a/mm/readahead.c b/mm/readahead.c index 95a24f12d1e7..406756d34309 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -649,7 +649,7 @@ void page_cache_async_ra(struct readahead_control *ractl, * Ramp up sizes, and push forward the readahead window. */ expected = round_down(ra->start + ra->size - ra->async_size, - 1UL << folio_order(folio)); + folio_nr_pages(folio)); if (index == expected) { ra->start += ra->size; /*