diff options
author | 2025-01-16 17:02:58 +0000 | |
---|---|---|
committer | 2025-01-17 22:24:04 +0100 | |
commit | 487d1a9cb586746c03190310056e292e8552539e (patch) | |
tree | 4c5ed4a5d9e7a31aed9b65d5abd0db4d52991f64 | |
parent | dm: Ensure cloned bio is same length for atomic write (diff) | |
download | wireguard-linux-487d1a9cb586746c03190310056e292e8552539e.tar.xz wireguard-linux-487d1a9cb586746c03190310056e292e8552539e.zip |
dm-linear: Enable atomic writes
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>
-rw-r--r-- | drivers/md/dm-linear.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 49fb0f684193..66318aba4bdb 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -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, |