[GIT PULL] Btrfs fixes 6.4-rc7, part 2

From: David Sterba
Date: Fri Jun 16 2023 - 12:13:19 EST


Hi,

here's the second part, two fixes for NOCOW files, a regression fix in
scrub and an assertion fix. Please pull, thanks.

- NOCOW fixes:
- keep length of iomap direct io request in case of a failure
- properly pass mode of extent reference checking, this can break
some cases for swapfile

- fix error value confusion when scrubbing a stripe

- convert assertion to a proper error handling when loading global
roots, reported by syzbot

----------------------------------------------------------------
The following changes since commit 79b8ee702c918f1936e17cc53e14bec388ce1045:

btrfs: scrub: also report errors hit during the initial read (2023-06-08 14:34:01 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-6.4-rc6-tag

for you to fetch changes up to b50f2d048ecf1512ff85128ea4153bceb0e60590:

btrfs: scrub: fix a return value overwrite in scrub_stripe() (2023-06-14 18:30:30 +0200)

----------------------------------------------------------------
Chris Mason (1):
btrfs: can_nocow_file_extent should pass down args->strict from callers

Christoph Hellwig (1):
btrfs: fix iomap_begin length for nocow writes

Qu Wenruo (2):
btrfs: do not ASSERT() on duplicated global roots
btrfs: scrub: fix a return value overwrite in scrub_stripe()

fs/btrfs/disk-io.c | 10 ++++++++--
fs/btrfs/inode.c | 20 +++++++++++++-------
fs/btrfs/scrub.c | 2 +-
3 files changed, 22 insertions(+), 10 deletions(-)