From 232fd353e45d13576d507a011b5dac17e3c320ab Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 21 Jan 2020 16:43:41 -0800 Subject: [PATCH] ANDROID: dm: enable may_passthrough_inline_crypto on some targets dm-linear obviously can pass through inline crypto support. In addition, we need dm-bow to pass through inline crypto support, as the userdata partition in Android may be located on top of dm-bow. Bug: 137270441 Change-Id: Ib9b0f67b77391fa450394568ceed441c1508de6e Signed-off-by: Eric Biggers Signed-off-by: Satya Tangirala --- drivers/md/dm-bow.c | 1 + drivers/md/dm-linear.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/md/dm-bow.c b/drivers/md/dm-bow.c index b92da30a3d42..28df18633853 100644 --- a/drivers/md/dm-bow.c +++ b/drivers/md/dm-bow.c @@ -726,6 +726,7 @@ static int dm_bow_ctr(struct dm_target *ti, unsigned int argc, char **argv) rb_insert_color(&br->node, &bc->ranges); ti->discards_supported = true; + ti->may_passthrough_inline_crypto = true; return 0; diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index e6fd31b03c38..aa294720b14e 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -61,6 +61,7 @@ int dm_linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) ti->num_discard_bios = 1; ti->num_write_same_bios = 1; ti->num_write_zeroes_bios = 1; + ti->may_passthrough_inline_crypto = true; ti->private = lc; return 0;