Re: [PATCH v2 0/2] mtd: rawnand: nandsim: stop pre-populating the cache file's page cache
From: Miquel Raynal
Date: Tue Nov 17 2026 - 09:23:36 EST
On Fri, 16 Oct 2026 14:31:18 -0400, Tal Zussman wrote:
> nandsim runs its cache file I/O under PF_MEMALLOC and pre-populates the
> page cache before each access, both to keep reclaim from coming back
> into the MTD during kernel_read() and kernel_write(). Use
> memalloc_noio_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().
>
> [...]
Applied to nand/next, thanks!
[1/2] mtd: rawnand: nandsim: use a NOIO scope for cache file I/O
commit: 385a54bf78fa5ac8d6bb02864afa4097238ea208
[2/2] mtd: rawnand: nandsim: stop pre-populating the cache file's page cache
commit: f4c7bdafff51b5e0d6aa7e3525d05b8305d4696b
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl