Commit 487d1a9c authored by John Garry's avatar John Garry Committed by Mikulas Patocka
Browse files

dm-linear: Enable atomic writes



Set feature flag DM_TARGET_ATOMIC_WRITES.

Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Reviewed-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 5f430e34
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -199,9 +199,10 @@ static size_t linear_dax_recovery_write(struct dm_target *ti, pgoff_t pgoff,

static struct target_type linear_target = {
	.name   = "linear",
	.version = {1, 4, 0},
	.version = {1, 5, 0},
	.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
		    DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
		    DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO |
		    DM_TARGET_ATOMIC_WRITES,
	.report_zones = linear_report_zones,
	.module = THIS_MODULE,
	.ctr    = linear_ctr,