]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dm: set DM_TARGET_PASSES_CRYPTO feature for dm-thin
authorLongPing Wei <weilongping@oppo.com>
Wed, 30 Jul 2025 06:17:19 +0000 (14:17 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 31 Jul 2025 14:30:02 +0000 (16:30 +0200)
dm-thin obviously can pass through inline crypto support.

Signed-off-by: LongPing Wei <weilongping@oppo.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-thin.c

index 05cf4e3f2bbea2b2bf85abf60b55ac044306dbd4..007bb93e5fca681cc3b939fd6ad57e65a4f0ac17 100644 (file)
@@ -4111,8 +4111,8 @@ static void pool_io_hints(struct dm_target *ti, struct queue_limits *limits)
 static struct target_type pool_target = {
        .name = "thin-pool",
        .features = DM_TARGET_SINGLETON | DM_TARGET_ALWAYS_WRITEABLE |
-                   DM_TARGET_IMMUTABLE,
-       .version = {1, 23, 0},
+                   DM_TARGET_IMMUTABLE | DM_TARGET_PASSES_CRYPTO,
+       .version = {1, 24, 0},
        .module = THIS_MODULE,
        .ctr = pool_ctr,
        .dtr = pool_dtr,
@@ -4497,7 +4497,8 @@ static void thin_io_hints(struct dm_target *ti, struct queue_limits *limits)
 
 static struct target_type thin_target = {
        .name = "thin",
-       .version = {1, 23, 0},
+       .features = DM_TARGET_PASSES_CRYPTO,
+       .version = {1, 24, 0},
        .module = THIS_MODULE,
        .ctr = thin_ctr,
        .dtr = thin_dtr,