[GIT PULL] Btrfs fixes for 5.18-rc5

From: David Sterba
Date: Tue Apr 26 2022 - 08:52:32 EST


Hi,

a few more fixes, please pull, thanks.

- direct IO fixes:
- restore passing file offset to correctly calculate checksums when
repairing on read and bio split happens
- use correct bio when sumitting IO on zoned filesystem

- zoned mode fixes:
- fix selection of device to correctly calculate device capabilities
when allocating a new bio
- use a dedicated lock for exclusion during relocation
- fix leaked plug after failure syncing log

- fix assertion during scrub and relocation

----------------------------------------------------------------
The following changes since commit acee08aaf6d158d03668dc82b0a0eef41100531b:

btrfs: fix btrfs_submit_compressed_write cgroup attribution (2022-04-06 00:50:51 +0200)

are available in the Git repository at:

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

for you to fetch changes up to 5f0addf7b89085f8e0a2593faa419d6111612b9b:

btrfs: zoned: use dedicated lock for data relocation (2022-04-21 16:06:24 +0200)

----------------------------------------------------------------
Christoph Hellwig (3):
btrfs: fix and document the zoned device choice in alloc_new_bio
btrfs: fix direct I/O read repair for split bios
btrfs: fix direct I/O writes for split bios on zoned devices

Filipe Manana (2):
btrfs: fix leaked plug after failure syncing log on zoned filesystems
btrfs: fix assertion failure during scrub due to block group reallocation

Naohiro Aota (1):
btrfs: zoned: use dedicated lock for data relocation

fs/btrfs/ctree.h | 1 +
fs/btrfs/dev-replace.c | 7 ++++++-
fs/btrfs/disk-io.c | 1 +
fs/btrfs/extent_io.c | 44 +++++++++++++++++++++++++++++---------------
fs/btrfs/inode.c | 18 ++++++++----------
fs/btrfs/scrub.c | 26 +++++++++++++++++++++++++-
fs/btrfs/tree-log.c | 1 +
fs/btrfs/volumes.h | 3 +++
fs/btrfs/zoned.h | 4 ++--
9 files changed, 76 insertions(+), 29 deletions(-)