[GIT PULL] Btrfs fixes for 7.0-rc1

From: David Sterba

Date: Fri Feb 20 2026 - 17:33:26 EST


Hi,

first batch of fixes that arrived after the code freeze. Please pull,
thanks.

- multiple error handling fixes of unexpected conditions

- reset block group size class once it becomes empty so its class can be
changed

- error message level adjustments

- fixes of returned error values

- use correct block reserve for delayed refs

----------------------------------------------------------------
The following changes since commit 161ab30da6899f31f8128cec7c833e99fa4d06d2:

btrfs: get rid of compressed_bio::compressed_folios[] (2026-02-03 07:59:07 +0100)

are available in the Git repository at:

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

for you to fetch changes up to ecb7c2484cfc83a93658907580035a8adf1e0a92:

btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found (2026-02-18 15:25:54 +0100)

----------------------------------------------------------------
Adarsh Das (2):
btrfs: handle unexpected exact match in btrfs_set_inode_index_count()
btrfs: replace BUG() with error handling in __btrfs_balance()

Filipe Manana (5):
btrfs: use the correct type to initialize block reserve for delayed refs
btrfs: change unaligned root messages to error level in btrfs_validate_super()
btrfs: fix lost return value on error in finish_verity()
btrfs: fix lost error return in btrfs_find_orphan_roots()
btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found

Jiasheng Jiang (1):
btrfs: reset block group size class when it becomes empty

Qu Wenruo (1):
btrfs: do not ASSERT() when the fs flips RO inside btrfs_repair_io_failure()

fs/btrfs/bio.c | 8 +++++++-
fs/btrfs/block-group.c | 10 ++++++++++
fs/btrfs/block-rsv.c | 7 ++++---
fs/btrfs/disk-io.c | 10 +++++-----
fs/btrfs/inode.c | 15 ++++++++++++---
fs/btrfs/qgroup.c | 11 +++++++----
fs/btrfs/root-tree.c | 2 +-
fs/btrfs/transaction.c | 2 +-
fs/btrfs/verity.c | 2 +-
fs/btrfs/volumes.c | 10 ++++++++--
10 files changed, 56 insertions(+), 21 deletions(-)