From: Mike Snitzer Date: Thu, 12 Aug 2010 03:14:13 +0000 (+0100) Subject: dm delay: support discard X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3fd5d48027181168ce85e8094b926aeb9f34c556;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git dm delay: support discard Enable discard support for the delay target. Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c index a91049e05219..baa11912cc94 100644 --- a/drivers/md/dm-delay.c +++ b/drivers/md/dm-delay.c @@ -198,6 +198,7 @@ out: atomic_set(&dc->may_delay, 1); ti->num_flush_requests = 1; + ti->num_discard_requests = 1; ti->private = dc; return 0;