[GIT PULL] Btrfs fixes for 6.2-rc3, part 2

From: David Sterba
Date: Fri Jan 06 2023 - 09:44:18 EST


Hi,

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

- regressions:
- fix assertion condition using = instead of ==
- fix false alert on bad tree level check
- fix off-by-one error in delalloc search during lseek

- fix compat ro feature check at read-write remount

- handle case when read-repair happens with ongoing device replace

- updated error messages

----------------------------------------------------------------
The following changes since commit fee4c19937439693f2420a916169d08e88576e8e:

btrfs: fix fscrypt name leak after failure to join log transaction (2022-12-20 19:43:47 +0100)

are available in the Git repository at:

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

for you to fetch changes up to 2ba48b20049b5a76f34a85f853c9496d1b10533a:

btrfs: fix compat_ro checks against remount (2023-01-03 16:22:13 +0100)

----------------------------------------------------------------
Filipe Manana (1):
btrfs: fix off-by-one in delalloc search during lseek

Qu Wenruo (5):
btrfs: add error message for metadata level mismatch
btrfs: fix false alert on bad tree level check
btrfs: handle case when repair happens with dev-replace
btrfs: always report error in run_one_delayed_ref()
btrfs: fix compat_ro checks against remount

Tanmay Bhushan (1):
btrfs: fix ASSERT em->len condition in btrfs_get_extent

fs/btrfs/bio.c | 11 ++++++++++-
fs/btrfs/disk-io.c | 11 ++++++++---
fs/btrfs/disk-io.h | 2 +-
fs/btrfs/extent-io-tree.c | 2 +-
fs/btrfs/extent-tree.c | 7 +++++--
fs/btrfs/extent_io.c | 30 +++++++++++++++++++++++++-----
fs/btrfs/file.c | 2 +-
fs/btrfs/inode.c | 2 +-
fs/btrfs/super.c | 2 +-
9 files changed, 53 insertions(+), 16 deletions(-)