[GIT PULL] Btrfs fix for 6.6-rc8
From: David Sterba
Date: Mon Oct 23 2023 - 12:17:41 EST
Hi,
one more fix for a problem with snapshot of a newly created subvolume
that can lead to inconsistent data under some circumstances. Kernel 6.5
added a performance optimization to skip transaction commit for
subvolume creation but this could end up with newer data on disk but not
linked to other structures.
The fix itself is an added condition, the rest of the patch is a
parameter added to several functions.
Please pull, thanks.
----------------------------------------------------------------
The following changes since commit 8a540e990d7da36813cb71a4a422712bfba448a4:
btrfs: fix stripe length calculation for non-zoned data chunk allocation (2023-10-15 19:00:59 +0200)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.6-rc7-tag
for you to fetch changes up to eb96e221937af3c7bb8a63208dbab813ca5d3d7e:
btrfs: fix unwritten extent buffer after snapshotting a new subvolume (2023-10-23 17:17:30 +0200)
----------------------------------------------------------------
Filipe Manana (1):
btrfs: fix unwritten extent buffer after snapshotting a new subvolume
fs/btrfs/backref.c | 14 +++++++++-----
fs/btrfs/backref.h | 3 ++-
fs/btrfs/ctree.c | 21 ++++++++++++++++-----
fs/btrfs/ctree.h | 3 ++-
fs/btrfs/relocation.c | 7 ++++---
5 files changed, 33 insertions(+), 15 deletions(-)