[PATCH v1 0/2] Tiny optimization for large read operations

Chi Zhiling posted 2 patches 2 months, 1 week ago
mm/filemap.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
[PATCH v1 0/2] Tiny optimization for large read operations
Posted by Chi Zhiling 2 months, 1 week ago
From: Chi Zhiling <chizhiling@kylinos.cn>

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@163.com/

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