[GIT PULL] Btrfs updates for v5.10-rc4

From: David Sterba
Date: Tue Nov 10 2020 - 11:07:39 EST


Hi,

a handful of minor fixes and updates:

- handle missing device replace item on mount (syzbot report)

- fix space reservation calculation when finishing relocation

- fix memory leak on error path in ref-verify (debugging feature)

- fix potential overflow during defrag on 32bit arches

- minor code update to silence smatch warning

- minor error message updates

Please pull, thanks.

----------------------------------------------------------------
The following changes since commit d5c8238849e7bae6063dfc16c08ed62cee7ee688:

btrfs: convert data_seqcount to seqcount_mutex_t (2020-10-27 15:11:51 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.10-rc3-tag

for you to fetch changes up to 468600c6ec28613b756193c5f780aac062f1acdf:

btrfs: ref-verify: fix memory leak in btrfs_ref_tree_mod (2020-11-05 13:03:39 +0100)

----------------------------------------------------------------
Anand Jain (1):
btrfs: dev-replace: fail mount if we don't have replace item with target device

Dan Carpenter (1):
btrfs: clean up NULL checks in qgroup_unreserve_range()

David Sterba (1):
btrfs: scrub: update message regarding read-only status

Dinghao Liu (1):
btrfs: ref-verify: fix memory leak in btrfs_ref_tree_mod

Josef Bacik (2):
btrfs: print the block rsv type when we fail our reservation
btrfs: fix min reserved size calculation in merge_reloc_root

Matthew Wilcox (Oracle) (1):
btrfs: fix potential overflow in cluster_pages_for_defrag on 32bit arch

fs/btrfs/block-rsv.c | 3 ++-
fs/btrfs/dev-replace.c | 26 ++++++++++++++++++++++++--
fs/btrfs/ioctl.c | 10 ++++------
fs/btrfs/qgroup.c | 12 ++++--------
fs/btrfs/ref-verify.c | 1 +
fs/btrfs/relocation.c | 4 +++-
fs/btrfs/scrub.c | 5 +++--
fs/btrfs/volumes.c | 26 +++++++-------------------
8 files changed, 48 insertions(+), 39 deletions(-)