dm thin: disable discards for thin-pool if no_discard_passdown
authorMike Snitzer <snitzer@kernel.org>
Fri, 16 Jun 2023 21:21:24 +0000 (17:21 -0400)
committerMike Snitzer <snitzer@kernel.org>
Fri, 16 Jun 2023 22:24:14 +0000 (18:24 -0400)
commitfa375646241b5350f7326fd4d686891b95d9fbe5
tree520b8269e6163dec3c2ea47b6ada6a4393d4d738
parent862c6663c12ba217e8e920dc6dd158383ea5cf76
dm thin: disable discards for thin-pool if no_discard_passdown

Also rename disable_passdown_if_not_supported to
disable_discard_passdown_if_not_supported.

And fold passdown_enabled() into only caller.

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