]> www.infradead.org Git - users/willy/xarray.git/commit
mtd: nand: Introduce a block iterator
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Aug 2024 10:14:05 +0000 (12:14 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Sep 2024 15:00:02 +0000 (17:00 +0200)
commit8adf1ac24ba8ee34b8fd36ebf159004ec472fca0
treeec5b944b8991f63cf5655d2ed4f2ca1645d70c72
parent3f4c0ad490cc55db5b375a2e19c67159cb255795
mtd: nand: Introduce a block iterator

In order to be able to iterate easily across eraseblocks rather than
pages, let's introduce a block iterator inspired from the page iterator.

The main usage of this iterator will be for continuous/sequential reads,
where it is interesting to use a single request rather than split the
requests in smaller chunks (ie. pages) that can be hardly optimized.

So a "continuous" boolean get's added for this purpose.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240826101412.20644-3-miquel.raynal@bootlin.com
include/linux/mtd/nand.h