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 <>
Reported-and-bisected-by: Linus Torvalds <>
Acked-by: David Sterba <>
Cc: Qu Wenruo <>
Signed-off-by: Linus Torvalds <>
2 files changed