[GIT PULL] Btrfs fixes for 6.12-rc5

From: David Sterba
Date: Wed Oct 23 2024 - 12:08:05 EST


Hi,

please pull the following fixes, all for stable trees. Thanks.

- mount option fixes:
- fix handling of compression mount options on remount
- reject rw remount in case there are options that don't work in
read-write mode (like rescue options)

- fix zone accounting of unusable space

- fix in-memory corruption when merging extent maps

- fix delalloc range locking for sector < page

- use more convenient default value of drop subtree threshold, clean
more subvolumes without the fallback to marking quotas inconsistent

- fix smatch warning about incorrect value passed to ERR_PTR

----------------------------------------------------------------
The following changes since commit 2ab5e243c2266c841e0f6904fad1514b18eaf510:

btrfs: fix uninitialized pointer free on read_alloc_one_name() error (2024-10-11 19:55:04 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.12-rc4-tag

for you to fetch changes up to 75f49c3dc7b7423d3734f2e4dabe3dac8d064338:

btrfs: fix passing 0 to ERR_PTR in btrfs_search_dir_index_item() (2024-10-22 16:10:55 +0200)

----------------------------------------------------------------
Boris Burkov (1):
btrfs: fix read corruption due to race with extent map merging

Filipe Manana (1):
btrfs: clear force-compress on remount when compress mount option is given

Naohiro Aota (1):
btrfs: zoned: fix zone unusable accounting for freed reserved extent

Qu Wenruo (3):
btrfs: qgroup: set a more sane default value for subtree drop threshold
btrfs: fix the delalloc range locking if sector size < page size
btrfs: reject ro->rw reconfiguration if there are hard ro requirements

Yue Haibing (1):
btrfs: fix passing 0 to ERR_PTR in btrfs_search_dir_index_item()

fs/btrfs/block-group.c | 2 ++
fs/btrfs/dir-item.c | 4 ++--
fs/btrfs/disk-io.c | 2 +-
fs/btrfs/extent_io.c | 17 +++++++++--------
fs/btrfs/extent_map.c | 31 ++++++++++++++++---------------
fs/btrfs/inode.c | 7 ++-----
fs/btrfs/qgroup.c | 2 +-
fs/btrfs/qgroup.h | 2 ++
fs/btrfs/super.c | 12 ++++++++++--
9 files changed, 45 insertions(+), 34 deletions(-)