linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Tiny optimization for large read operations
@ 2025-07-28  8:39 Chi Zhiling
  2025-07-28  8:39 ` [PATCH v1 1/2] mm/filemap: Do not use is_partially_uptodate for entire folio Chi Zhiling
  2025-07-28  8:39 ` [PATCH v1 2/2] mm/filemap: Skip non-uptodate folio if there are available folios Chi Zhiling
  0 siblings, 2 replies; 3+ messages in thread
From: Chi Zhiling @ 2025-07-28  8:39 UTC (permalink / raw)
  To: willy, akpm; +Cc: linux-fsdevel, linux-mm, linux-kernel, Chi Zhiling

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-28  8:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-28  8:39 [PATCH v1 0/2] Tiny optimization for large read operations Chi Zhiling
2025-07-28  8:39 ` [PATCH v1 1/2] mm/filemap: Do not use is_partially_uptodate for entire folio Chi Zhiling
2025-07-28  8:39 ` [PATCH v1 2/2] mm/filemap: Skip non-uptodate folio if there are available folios Chi Zhiling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).