[PATCH 0/3 v2] improve fadvise(POSIX_FADV_WILLNEED) with large folio
From: Jaegeuk Kim
Date: Mon Dec 01 2025 - 20:32:22 EST
This patch series aims to improve fadvise(POSIX_FADV_WILLNEED). The first patch
fixes the broken logic which was not reading the entire range ahead, and second
patch converts the readahead function to adopt large folio, and the thrid one
bumps up the folio order for high-order page allocation accordingly.
Jaegeuk Kim (3):
mm/readahead: fix the broken readahead for POSIX_FADV_WILLNEED
mm/readahead: use page_cache_sync_ra for FADVISE_FAV_WILLNEED
mm/readahead: try to allocate high order pages for
FADVISE_FAV_WILLNEED
mm/readahead.c | 43 +++++++++++++++++++++++++------------------
1 file changed, 25 insertions(+), 18 deletions(-)
--
2.52.0.107.ga0afd4fd5b-goog