[PATCH v2 0/7] dm-verity: FEC optimizations and fixes

Eric Biggers
2025-12-19T19:32:20Z

Various optimizations and fixes for dm-verity's forward error
correction. Targeting linux-dm/for-next and based on v6.19-rc1.

Changed in v2:
- Removed DM_VERITY_FEC_BUF_PREALLOC
- Made __verity_fec_finish_io() set ->fec_io to NULL. (Might as well.)
- Added Sami's Reviewed-by

Eric Biggers (7):
dm-verity: move dm_verity_fec_io to mempool
dm-verity: make dm_verity_fec_io::bufs variable-length
dm-verity: remove unnecessary condition for verity_fec_finish_io()
dm-verity: remove unnecessary ifdef around verity_fec_decode()
dm-verity: make verity_fec_is_enabled() an inline function
dm-verity: correctly handle dm_bufio_client_create() failure
dm-verity: allow REED_SOLOMON to be 'm' if DM_VERITY is 'm'

drivers/md/Kconfig | 4 +-
drivers/md/dm-verity-fec.c | 134 ++++++++++++++--------------------
drivers/md/dm-verity-fec.h | 35 ++++++---
drivers/md/dm-verity-target.c | 5 +-
drivers/md/dm-verity.h | 4 +
5 files changed, 86 insertions(+), 96 deletions(-)

base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
--
2.52.0