]> Gentwo Git Trees - linux/.git/commitdiff
dm-linear: Enable atomic writes
authorJohn Garry <john.g.garry@oracle.com>
Thu, 16 Jan 2025 17:02:58 +0000 (17:02 +0000)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 17 Jan 2025 21:24:04 +0000 (22:24 +0100)
Set feature flag DM_TARGET_ATOMIC_WRITES.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-linear.c

index 49fb0f6841938deec0955fa638a3c958683c91af..66318aba4bdbadf717c046e9dab52d3fa4a96c1d 100644 (file)
@@ -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,