[PATCH for v4.9 LTS 32/86] Btrfs: fix truncate down when no_holes feature is enabled

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Liu Bo [ Upstream commit 91298eec05cd8d4e828cf7ee5d4a6334f70cf69a ] For such a file mapping, [0-4k][hole][8k-12k] In NO_HOLES mode, we don't have the [hole] extent any more. Commit c1aa45759e90 ("Btrfs: fix shrinking truncate when the no_holes feature is enabled")

[PATCH for v4.9 LTS 32/86] Btrfs: fix truncate down when no_holes feature is enabled

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Liu Bo [ Upstream commit 91298eec05cd8d4e828cf7ee5d4a6334f70cf69a ] For such a file mapping, [0-4k][hole][8k-12k] In NO_HOLES mode, we don't have the [hole] extent any more. Commit c1aa45759e90 ("Btrfs: fix shrinking truncate when the no_holes feature is enabled") fixed disk isize not