Commit 55a0fbd2 authored by LongPing Wei's avatar LongPing Wei Committed by Mikulas Patocka
Browse files

dm: set DM_TARGET_PASSES_CRYPTO feature for dm-thin



dm-thin obviously can pass through inline crypto support.

Signed-off-by: default avatarLongPing Wei <weilongping@oppo.com>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 9576e1ae
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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,