diff options
author | Sean Young <sean@mess.org> | 2021-08-08 00:45:35 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-08-17 19:42:58 +0300 |
commit | a3a447848a153d0dae63d02ceb94b02fb43ec899 (patch) | |
tree | 70deb3351143bf792fd3e6700cf803f850b64bc3 /drivers/target | |
parent | e03a81213a9c9dd4f4f45c09a777323dff84827f (diff) | |
download | linux-a3a447848a153d0dae63d02ceb94b02fb43ec899.tar.xz |
mtd: rfd_ftl: add discard support
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@mess.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210807214538.14484-3-sean@mess.org
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions