[PATCH v2 2/5] mtd: rfd_ftl: add discard support

Miquel Raynal miquel.raynal at bootlin.com
Mon Aug 16 07:27:04 PDT 2021


On Sat, 2021-08-07 at 21:45:35 UTC, Sean Young wrote:
> I proposed this change 16 years ago before discard was a feature in
> the block layer: https://lwn.net/Articles/162776/
> 
> Now that the block layer has discard, we can finally merge this change.
> 
> Discard is also known as trim. By implementing discard, both fstrim and
> the discard filesystem option can be used.
> 
> Implementing discard in the ftl means that when files are removed, there
> is less data in the ftl mapping. This means less stuff to move around for
> erasing and also less erasing to do; this means improved wear levelling
> and improved performance.
> 
> Signed-off-by: Sean Young <sean at mess.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list