[GIT PULL] Btrfs fixes for 6.5-rc3

From: David Sterba
Date: Thu Jul 20 2023 - 10:30:39 EST


Hi,

please pull the following fixes, backports for stable and two regression
fixes. Thanks.

Fixes:

- fix race between balance and cancel/pause

- various iput() fixes

- fix use-after-free of new block group that became unused

- fix warning when putting transaction with qgroups enabled after abort

- fix crash in subpage mode when page could be released between map and
map read

- when scrubbing raid56 verify the P/Q stripes unconditionally

- fix minor memory leak in zoned mode when a block group with an
unexpected superblock is found

Regression fixes:

- fix ordered extent split error handling when submitting direct IO

- user irq-safe locking when adding delayed iputs


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

btrfs: fix race between quota disable and relocation (2023-06-19 20:29:25 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.5-rc2-tag

for you to fetch changes up to aa84ce8a78a1a5c10cdf9c7a5fb0c999fbc2c8d6:

btrfs: fix warning when putting transaction with qgroups enabled after abort (2023-07-18 03:14:11 +0200)

----------------------------------------------------------------
Christoph Hellwig (2):
btrfs: be a bit more careful when setting mirror_num_ret in btrfs_map_block
btrfs: fix ordered extent split error handling in btrfs_dio_submit_io

Filipe Manana (6):
btrfs: fix use-after-free of new block group that became unused
btrfs: zoned: fix memory leak after finding block group with super blocks
btrfs: fix double iput() on inode after an error during orphan cleanup
btrfs: fix iput() on error pointer after error during orphan cleanup
btrfs: use irq safe locking when running and adding delayed iputs
btrfs: fix warning when putting transaction with qgroups enabled after abort

Josef Bacik (2):
btrfs: fix race between balance and cancel/pause
btrfs: set_page_extent_mapped after read_folio in btrfs_cont_expand

Qu Wenruo (1):
btrfs: raid56: always verify the P/Q contents for scrub

fs/btrfs/block-group.c | 14 +++++++--
fs/btrfs/block-group.h | 5 ++++
fs/btrfs/inode.c | 77 ++++++++++++++++++++++++++++++++++----------------
fs/btrfs/qgroup.c | 1 +
fs/btrfs/raid56.c | 11 ++------
fs/btrfs/volumes.c | 17 ++++-------
6 files changed, 79 insertions(+), 46 deletions(-)