Skip to contentSkip to conversation

Btrfs fixes for 6.1-rc5

GIT PULL Merged David Sterba 2 participants 2 messages Nov 10, 2022 Btrfs file system

lore
Share & tools
lore

David Sterba

author maintainer
#0 lore raw

Hi,

a few more regression fixes and regular fixes. Please pull, thanks.

- revert memory optimization for scrub blocks, this misses errors in 2nd and following blocks

- add exception for ENOMEM as reason for transaction abort to not print stack trace, syzbot has reported many

- zoned fixes:
- fix locking imbalance during scrub
- initialize zones for seeding device
- initialize zones for cloned device structures

- when looking up device, change assertion to a real check as some of the search parameters can be passed by ioctl, reported by syzbot

- fix error pointer check in self tests

----------------------------------------------------------------
The following changes since commit eb81b682b131642405a05c627ab08cf0967b3dd8:

btrfs: fix inode reserve space leak due to nowait buffered write (2022-11-02 17:44:45 +0100)

are available in the Git repository at:

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

for you to fetch changes up to c62f6bec53e63b11112e1ebce6bbaa39ce6f6706:

btrfs: zoned: fix locking imbalance on scrub (2022-11-07 14:35:25 +0100)

----------------------------------------------------------------
David Sterba (1):
btrfs: don't print stack trace when transaction is aborted due to ENOMEM

Johannes Thumshirn (3):
btrfs: zoned: clone zoned device info when cloning a device
btrfs: zoned: initialize device's zone info for seeding
btrfs: zoned: fix locking imbalance on scrub

Liu Shixin (1):
btrfs: fix match incorrectly in dev_args_match_device

Qu Wenruo (1):
Revert "btrfs: scrub: use larger block size for data extent scrub"

Zhang Xiaoxu (1):
btrfs: selftests: fix wrong error check in btrfs_free_dummy_root()

 fs/btrfs/ctree.c             | 16 ++++++++++++++++
 fs/btrfs/ctree.h             | 11 +++++++----
 fs/btrfs/disk-io.c           |  4 +++-
 fs/btrfs/scrub.c             |  9 +--------
 fs/btrfs/tests/btrfs-tests.c |  2 +-
 fs/btrfs/volumes.c           | 39 +++++++++++++++++++++++++++++----------
 fs/btrfs/volumes.h           |  2 +-
 fs/btrfs/zoned.c             | 40 ++++++++++++++++++++++++++++++++++++++++
 fs/btrfs/zoned.h             | 11 +++++++++++
 9 files changed, 109 insertions(+), 25 deletions(-)