[PATCH v1 0/2] Tiny optimization for large read operations
From: Chi Zhiling
Date: Mon Jul 28 2025 - 04:40:50 EST
From: Chi Zhiling <chizhiling@xxxxxxxxxx>
This series contains two patches,
1. Skip calling is_partially_uptodate for entire folio to save time,
I have reviewed the mpage and iomap implementations and didn't spot any
issues, but this change likely needs more thorough review.
2. Skip calling filemap_uptodate if there are ready folios in the batch,
This might save a few milliseconds in practice, but I didn't observe
measurable improvements in my tests.
Changes from rfc:
- update commits
- switch to the new solution which provided by Matthew Wilcox.
rfc:
https://lore.kernel.org/linux-fsdevel/20250723101825.607184-1-chizhiling@xxxxxxx/
Chi Zhiling (2):
mm/filemap: Do not use is_partially_uptodate for entire folio
mm/filemap: Skip non-uptodate folio if there are available folios
mm/filemap.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
--
2.43.0