[GIT PULL] Btrfs fixes for 6.17-rc2

From: David Sterba
Date: Tue Aug 12 2025 - 08:26:53 EST


Hi,

please pull a few regression fixes and other usual fixes. Thanks.

- fix bug in qgroups reporting incorrect usage for higher level qgroups

- in zoned mode, do not select metadata group as finish target

- convert xarray lock to RCU when trying to release extent buffer to
avoid a deadlock

- do not allow relocation on partially dropped subvolumes, which is
normally not possible but has been reported on old filesystems

- in tree-log, report errors on missing block group when unaccounting
log tree extent buffers

- with large folios, fix range length when processing ordered extents

----------------------------------------------------------------
The following changes since commit 0a32e4f0025a74c70dcab4478e9b29c22f5ecf2f:

btrfs: fix log tree replay failure due to file with 0 links and extents (2025-08-06 13:01:38 +0200)

are available in the Git repository at:

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

for you to fetch changes up to 7b632596188e1973c6b3ac1c9f8252f735e1039f:

btrfs: fix iteration bug in __qgroup_excl_accounting() (2025-08-07 17:07:16 +0200)

----------------------------------------------------------------
Boris Burkov (1):
btrfs: fix iteration bug in __qgroup_excl_accounting()

Filipe Manana (1):
btrfs: error on missing block group when unaccounting log tree extent buffers

Leo Martins (1):
btrfs: fix subpage deadlock in try_release_subpage_extent_buffer()

Naohiro Aota (1):
btrfs: zoned: do not select metadata BG as finish target

Qu Wenruo (3):
btrfs: make btrfs_cleanup_ordered_extents() support large folios
btrfs: fix wrong length parameter for btrfs_cleanup_ordered_extents()
btrfs: do not allow relocation of partially dropped subvolumes

fs/btrfs/extent_io.c | 11 ++++++-----
fs/btrfs/inode.c | 8 +++++---
fs/btrfs/qgroup.c | 3 +--
fs/btrfs/relocation.c | 19 +++++++++++++++++++
fs/btrfs/tree-log.c | 19 +++++++------------
fs/btrfs/zoned.c | 2 +-
6 files changed, 39 insertions(+), 23 deletions(-)