Revert "btrfs: zstd: fix and simplify the inline extent decompression"
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 22 Jan 2024 23:39:01 +0000 (15:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 22 Jan 2024 23:39:01 +0000 (15:39 -0800)
commite01a83e12604aa2f8d4ab359ec44e341a2248b4a
treee12da36fc50c332df9fac2c32596d75e0fe77b68
parent5d9248eed48054bf26b3d5ad3d7073a356a17d19
Revert "btrfs: zstd: fix and simplify the inline extent decompression"

This reverts commit 1e7f6def8b2370ecefb54b3c8f390ff894b0c51b.

It causes my machine to not even boot, and Klara Modin reports that the
cause is that small zstd-compressed files return garbage when read.

Reported-by: Klara Modin <klarasmodin@gmail.com>
Link: https://lore.kernel.org/linux-btrfs/CABq1_vj4GpUeZpVG49OHCo-3sdbe2-2ROcu_xDvUG-6-5zPRXg@mail.gmail.com/
Reported-and-bisected-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: David Sterba <dsterba@suse.com>
Cc: Qu Wenruo <wqu@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/btrfs/compression.h
fs/btrfs/zstd.c