From: Mike Snitzer Date: Fri, 10 May 2013 13:37:16 +0000 (+0100) Subject: dm table: fix write same support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc019b21fb92d620a3b52ccecc135ac968a7c7ec;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git dm table: fix write same support If device_not_write_same_capable() returns true then the iterate_devices loop in dm_table_supports_write_same() should return false. Reported-by: Bharata B Rao Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org # v3.8+ Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index e50dad0c65f4..1ff252ab7d46 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1442,7 +1442,7 @@ static bool dm_table_supports_write_same(struct dm_table *t) return false; if (!ti->type->iterate_devices || - !ti->type->iterate_devices(ti, device_not_write_same_capable, NULL)) + ti->type->iterate_devices(ti, device_not_write_same_capable, NULL)) return false; }