All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: rawnand: nandsim: stop pre-populating the cache file's page cache
@ 2026-10-15  3:24 Tal Zussman
  2026-10-15  3:24 ` [PATCH 1/2] mtd: rawnand: nandsim: use a NOFS scope for cache file I/O Tal Zussman
  2026-10-15  3:24 ` [PATCH 2/2] mtd: rawnand: nandsim: stop pre-populating the cache file's page cache Tal Zussman
  0 siblings, 2 replies; 4+ messages in thread
From: Tal Zussman @ 2026-10-15  3:24 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra
  Cc: Matthew Wilcox (Oracle), linux-mtd, linux-kernel, Tal Zussman

nandsim runs its cache file I/O under PF_MEMALLOC and pre-populates
the page cache before each access, both to get NOFS allocation out of
kernel_read() and kernel_write(). Use memalloc_nofs_save() for that
instead and remove the pre-population. The pre-population is the
driver's only struct page usage and one of the last users of
find_get_page() and find_or_create_page().

Tested on KVM using the MTD test modules, nandtest, and fsx/fsstress on
UBIFS over a nandsim cache file, with no errors and a 6-13% speedup in
mtd_speedtest.

---
Tal Zussman (2):
      mtd: rawnand: nandsim: use a NOFS scope for cache file I/O
      mtd: rawnand: nandsim: stop pre-populating the cache file's page cache

 drivers/mtd/nand/raw/nandsim.c | 85 +++++++-----------------------------------
 1 file changed, 14 insertions(+), 71 deletions(-)
---
base-commit: 30daaf3e7897b4a8d9b72e5b0c86dd6e2a4d7d85
change-id: 20261012-nandsim-nofs-8f3ae982181e

Best regards,
--  
Tal Zussman <tz2294@columbia.edu>


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2026-10-15  3:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15  3:24 [PATCH 0/2] mtd: rawnand: nandsim: stop pre-populating the cache file's page cache Tal Zussman
2026-10-15  3:24 ` [PATCH 1/2] mtd: rawnand: nandsim: use a NOFS scope for cache file I/O Tal Zussman
2026-10-15  3:36   ` sashiko-bot
2026-10-15  3:24 ` [PATCH 2/2] mtd: rawnand: nandsim: stop pre-populating the cache file's page cache Tal Zussman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.