dm thin: update .io_hints methods to not require handling discards last
authorMike Snitzer <snitzer@kernel.org>
Wed, 31 May 2023 17:49:47 +0000 (13:49 -0400)
committerMike Snitzer <snitzer@kernel.org>
Fri, 16 Jun 2023 22:24:13 +0000 (18:24 -0400)
commitef6953fb68fe52a13cd154509d1ac9f9748c6051
tree8adb08e5d08b535630cff9a6592300ea195c4d5d
parentc0a7a0ac0707a123f936daccf6639ce1c48840d5
dm thin: update .io_hints methods to not require handling discards last

Removes assumptions about what might follow the discard setup code
(previously the code would return early if discards not enabled).

Makes it possible to add more capabilites to the end of each .io_hints
method (which is the natural thing to do when adding new features).

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-thin.c