Konstantin Demin
8cbaf1dea2
3rd patchs (in alphabetical order): - bbr3 - ntsync5 - openwrt - pf-kernel - xanmod - zen no configuration changes for now
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 8ea93b01558ea7a752e478ad25862e7441d6053a Mon Sep 17 00:00:00 2001
|
|
From: Johannes Thumshirn <johannes.thumshirn@wdc.com>
|
|
Date: Thu, 19 Sep 2024 12:16:38 +0200
|
|
Subject: btrfs: also add stripe entries for NOCOW writes
|
|
|
|
NOCOW writes do not generate stripe_extent entries in the RAID stripe
|
|
tree, as the RAID stripe-tree feature initially was designed with a
|
|
zoned filesystem in mind and on a zoned filesystem, we do not allow NOCOW
|
|
writes. But the RAID stripe-tree feature is independent from the zoned
|
|
feature, so we must also do NOCOW writes for RAID stripe-tree filesystems.
|
|
|
|
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
|
|
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
|
|
Signed-off-by: David Sterba <dsterba@suse.com>
|
|
---
|
|
fs/btrfs/inode.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
--- a/fs/btrfs/inode.c
|
|
+++ b/fs/btrfs/inode.c
|
|
@@ -3087,6 +3087,11 @@ int btrfs_finish_one_ordered(struct btrf
|
|
ret = btrfs_update_inode_fallback(trans, inode);
|
|
if (ret) /* -ENOMEM or corruption */
|
|
btrfs_abort_transaction(trans, ret);
|
|
+
|
|
+ ret = btrfs_insert_raid_extent(trans, ordered_extent);
|
|
+ if (ret)
|
|
+ btrfs_abort_transaction(trans, ret);
|
|
+
|
|
goto out;
|
|
}
|
|
|