[GIT PULL] Btrfs fix for 5.2-rc5

From: David Sterba
Date: Tue Jun 11 2019 - 12:20:16 EST


Hi,

here's one regression fix to TRIM ioctl. The range cannot be used as
its meaning can be confusing regarding physical and logical addresses.
This confusion in code led to potential corruptions when the range
overlapped data.

The original patch made it to several stable kernels and was promptly
reverted, the version for master branch is different due to additional
changes but the change is effectively the same.

Please pull, thanks.

----------------------------------------------------------------
The following changes since commit 06989c799f04810f6876900d4760c0edda369cf7:

Btrfs: fix race updating log root item during fsync (2019-05-28 19:26:46 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.2-rc4-tag

for you to fetch changes up to 8103d10b71610aa65a65d6611cd3ad3f3bd7beeb:

btrfs: Always trim all unallocated space in btrfs_trim_free_extents (2019-06-07 14:52:05 +0200)

----------------------------------------------------------------
Nikolay Borisov (1):
btrfs: Always trim all unallocated space in btrfs_trim_free_extents

fs/btrfs/extent-tree.c | 28 +++-------------------------
1 file changed, 3 insertions(+), 25 deletions(-)