[PATCH v2 3/5] mtd: blk_devs: make discard work on FTLs

Miquel Raynal miquel.raynal at bootlin.com
Mon Aug 16 07:26:59 PDT 2021


On Sat, 2021-08-07 at 21:45:36 UTC, Sean Young wrote:
> If the discard_granularity is not set, discard will not work and the
> following error is logged:
> 
> rfda: Error: discard_granularity is 0.
> 
> Since all the FTLs use a sector size of 512, this can be hardcoded.
> 
> 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