2023-09-26 17:11:28

by David Sterba

[permalink] [raw]
Subject: [GIT PULL] Btrfs fixes for 6.6-rc4

Hi,

a few more fixes and build warning fixes. Please pull, thanks.

- delayed refs fixes:
- fix race when refilling delayed refs block reserve
- prevent transaction block reserve underflow when starting transaction
- error message and value adjustments

- fix build warnings with CONFIG_CC_OPTIMIZE_FOR_SIZE and -Wmaybe-uninitialized

- fix for smatch report where uninitialized data from invalid extent
buffer range could be returned to the caller

- fix numeric overflow in statfs when calculating lower threshold for a
full filesystem


----------------------------------------------------------------
The following changes since commit 8e7f82deb0c0386a03b62e30082574347f8b57d5:

btrfs: fix race between reading a directory and adding entries to it (2023-09-14 23:24:42 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.6-rc3-tag

for you to fetch changes up to b4c639f699349880b7918b861e1bd360442ec450:

btrfs: initialize start_slot in btrfs_log_prealloc_extents (2023-09-21 18:52:23 +0200)

----------------------------------------------------------------
Filipe Manana (5):
btrfs: fix race when refilling delayed refs block reserve
btrfs: prevent transaction block reserve underflow when starting transaction
btrfs: return -EUCLEAN for delayed tree ref with a ref count not equals to 1
btrfs: remove redundant BUG_ON() from __btrfs_inc_extent_ref()
btrfs: log message if extent item not found when running delayed extent op

Josef Bacik (3):
btrfs: properly report 0 avail for very full file systems
btrfs: make sure to initialize start and len in find_free_dev_extent
btrfs: initialize start_slot in btrfs_log_prealloc_extents

Qu Wenruo (1):
btrfs: reset destination buffer when read_extent_buffer() gets invalid range

fs/btrfs/delayed-ref.c | 46 +++++++++++++++++++++++++++++++++++-----------
fs/btrfs/delayed-ref.h | 1 -
fs/btrfs/extent-tree.c | 18 ++++++++++--------
fs/btrfs/extent_io.c | 8 +++++++-
fs/btrfs/super.c | 2 +-
fs/btrfs/transaction.c | 6 +++---
fs/btrfs/tree-log.c | 2 +-
fs/btrfs/volumes.c | 13 ++++++-------
8 files changed, 63 insertions(+), 33 deletions(-)