From: Greg Kroah-Hartman Date: Mon, 28 Oct 2024 05:57:47 +0000 (+0100) Subject: delete queue-6.11/btrfs-also-add-stripe-entries-for-nocow-writes.patch X-Git-Tag: v5.15.170~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dc0e7b27d108b9a4031c34400f6f575f83d5faf;p=thirdparty%2Fkernel%2Fstable-queue.git delete queue-6.11/btrfs-also-add-stripe-entries-for-nocow-writes.patch --- diff --git a/queue-6.11/btrfs-also-add-stripe-entries-for-nocow-writes.patch b/queue-6.11/btrfs-also-add-stripe-entries-for-nocow-writes.patch deleted file mode 100644 index a775701abcd..00000000000 --- a/queue-6.11/btrfs-also-add-stripe-entries-for-nocow-writes.patch +++ /dev/null @@ -1,42 +0,0 @@ -From ec508a5930024b40064d70cb3dbdf856760cdf5d Mon Sep 17 00:00:00 2001 -From: Sasha Levin -Date: Thu, 19 Sep 2024 12:16:38 +0200 -Subject: btrfs: also add stripe entries for NOCOW writes - -From: Johannes Thumshirn - -[ Upstream commit 97f9782276fc9cb0de37a5eecb82204e48a5a612 ] - -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 -Signed-off-by: Johannes Thumshirn -Signed-off-by: David Sterba -Signed-off-by: Sasha Levin ---- - fs/btrfs/inode.c | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c -index b1b6564ab68f0..48149c2e68954 100644 ---- a/fs/btrfs/inode.c -+++ b/fs/btrfs/inode.c -@@ -3087,6 +3087,11 @@ int btrfs_finish_one_ordered(struct btrfs_ordered_extent *ordered_extent) - 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; - } - --- -2.43.0 -