[GIT PULL] Btrfs fixes for 5.12-rc1, part 2

From: David Sterba
Date: Fri Mar 05 2021 - 10:58:15 EST


From: David Sterba <dsterba@xxxxxxx>

Hi,

more regression fixes and stabilization. Please pull, thanks.

Regressions:

- zoned mode
- count zone sizes in wider int types
- fix space accounting for read-only block groups

- subpage: fix page tail zeroing

Fixes:

- fix spurious warning when remounting with free space tree

- fix warning when creating a directory with smack enabled

- ioctl checks for qgroup inheritance when creating a snapshot

- qgroup
- fix missing unlock on error path in zero range
- fix amount of released reservation on error
- fix flushing from unsafe context with open transaction, potentially
deadlocking

- minor build warning fixes

----------------------------------------------------------------
The following changes since commit 6e37d245994189ba757df7dc2950a44d31421ac6:

btrfs: zoned: fix deadlock on log sync (2021-02-22 18:08:48 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.12-rc1-tag

for you to fetch changes up to badae9c86979c459bd7d895d6d7ddc7a01131ff7:

btrfs: zoned: do not account freed region of read-only block group as zone_unusable (2021-03-04 16:16:58 +0100)

----------------------------------------------------------------
Boris Burkov (1):
btrfs: fix spurious free_space_tree remount warning

Dan Carpenter (1):
btrfs: validate qgroup inherit for SNAP_CREATE_V2 ioctl

Filipe Manana (1):
btrfs: fix warning when creating a directory with smack enabled

Naohiro Aota (2):
btrfs: zoned: use sector_t for zone sectors
btrfs: zoned: do not account freed region of read-only block group as zone_unusable

Nikolay Borisov (4):
btrfs: unlock extents in btrfs_zero_range in case of quota reservation errors
btrfs: free correct amount of space in btrfs_delayed_inode_reserve_metadata
btrfs: export and rename qgroup_reserve_meta
btrfs: don't flush from btrfs_delayed_inode_reserve_metadata

Qu Wenruo (1):
btrfs: subpage: fix the false data csum mismatch error

Randy Dunlap (1):
btrfs: ref-verify: use 'inline void' keyword ordering

fs/btrfs/delayed-inode.c | 5 +++--
fs/btrfs/extent_io.c | 21 ++++++++++++++++-----
fs/btrfs/file.c | 5 ++++-
fs/btrfs/free-space-cache.c | 7 ++++++-
fs/btrfs/inode.c | 2 +-
fs/btrfs/ioctl.c | 19 ++++++++++++++++++-
fs/btrfs/qgroup.c | 8 ++++----
fs/btrfs/qgroup.h | 2 ++
fs/btrfs/ref-verify.c | 4 ++--
fs/btrfs/super.c | 4 ++--
fs/btrfs/xattr.c | 31 +++++++++++++++++++++++++++----
fs/btrfs/zoned.c | 4 ++--
12 files changed, 87 insertions(+), 25 deletions(-)