[GIT PULL] Btrfs fixes for 5.4-rc7

From: David Sterba
Date: Sat Nov 09 2019 - 10:07:23 EST


Hi,

there are a few regressions and fixes for stable. Please pull, thanks.

Regressions:

- fix a race leading to metadata space leak after task received a signal

- un-deprecate 2 ioctls, marked as deprecated by mistake

Fixes:

- fix limit check for number of devices during chunk allocation

- fix a race due to double evaluation of i_size_read inside max() macro,
can cause a crash

- remove wrong device id check in tree-checker

----------------------------------------------------------------
The following changes since commit ba0b084ac309283db6e329785c1dc4f45fdbd379:

Btrfs: check for the full sync flag while holding the inode lock during fsync (2019-10-17 20:36:02 +0200)

are available in the Git repository at:

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

for you to fetch changes up to a5009d3a318e9f02ddc9aa3d55e2c64d6285c4b9:

btrfs: un-deprecate ioctls START_SYNC and WAIT_SYNC (2019-11-04 21:42:01 +0100)

----------------------------------------------------------------
David Sterba (1):
btrfs: un-deprecate ioctls START_SYNC and WAIT_SYNC

Filipe Manana (1):
Btrfs: fix race leading to metadata space leak after task received signal

Josef Bacik (1):
btrfs: save i_size to avoid double evaluation of i_size_read in compress_file_range

Qu Wenruo (2):
btrfs: Consider system chunk array size for new SYSTEM chunks
btrfs: tree-checker: Fix wrong check on max devid

fs/btrfs/inode.c | 15 ++++++++++++++-
fs/btrfs/ioctl.c | 6 ------
fs/btrfs/space-info.c | 21 +++++++++++++++++++++
fs/btrfs/tree-checker.c | 8 --------
fs/btrfs/volumes.c | 1 +
5 files changed, 36 insertions(+), 15 deletions(-)