Skip to contentSkip to conversation

Btrfs fixes for 6.4-rc2, part 2

GIT PULL Merged David Sterba 2 participants 2 messages May 12, 2023 Btrfs file system

lore
Share & tools
lore

David Sterba

author maintainer
#0 lore raw

Hi,

a few more fixes for stable trees. Please pull, thanks.

- fix incorrect number of bitmap entries for space cache if loading is interrupted by some error

- fix backref walking, this breaks a mode of LOGICAL_INO_V2 ioctl that is used in deduplication tools

- zoned mode fixes
- properly finish zone reserved for relocation
- correctly calculate super block zone end on ZNS
- properly initialize new extent buffer for redirty

- make mount option clear_cache work with block-group-tree, to rebuild free-space-tree instead of temporarily disabling it that would lead to a forced read-only mount

- fix alignment check for offset when printing extent item

----------------------------------------------------------------
The following changes since commit d246331b78cbef86237f9c22389205bc9b4e1cc1:

btrfs: don't free qgroup space unless specified (2023-05-03 16:37:56 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-6.4-rc1-tag

for you to fetch changes up to 1d6a4fc85717677e00fefffd847a50fc5928ce69:

btrfs: make clear_cache mount option to rebuild FST without disabling it (2023-05-10 14:51:27 +0200)

----------------------------------------------------------------
Anastasia Belova (1):
btrfs: print-tree: parent bytenr must be aligned to sector size

Christoph Hellwig (1):
btrfs: zero the buffer before marking it dirty in btrfs_redirty_list_add

Filipe Manana (2):
btrfs: fix space cache inconsistency after error loading it from disk
btrfs: fix backref walking not returning all inode refs

Naohiro Aota (2):
btrfs: zoned: zone finish data relocation BG with last IO
btrfs: zoned: fix full zone super block reading on ZNS

Qu Wenruo (1):
btrfs: make clear_cache mount option to rebuild FST without disabling it

 fs/btrfs/backref.c          | 19 +++++++++--------
 fs/btrfs/backref.h          |  6 ++++++
 fs/btrfs/disk-io.c          | 25 ++++++++++++++++-------
 fs/btrfs/free-space-cache.c |  7 ++++---
 fs/btrfs/free-space-tree.c  | 50 ++++++++++++++++++++++++++++++++++++++++++++-
 fs/btrfs/free-space-tree.h  |  3 ++-
 fs/btrfs/inode.c            |  3 +++
 fs/btrfs/print-tree.c       |  6 +++---
 fs/btrfs/relocation.c       |  2 +-
 fs/btrfs/super.c            |  3 +--
 fs/btrfs/zoned.c            | 11 +++++-----
 11 files changed, 102 insertions(+), 33 deletions(-)