Dan Carpenter 08404fa208 btrfs: fix some error checking for btrfs_decompress()
The btrfs_decompress() function mostly (u32)-1 on error but it can
also return -EPERM or other kernel error codes from zstd_decompress().
The "ret" variable is an int, so we could just check for negatives.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
2023-08-08 17:41:52 -04:00
..
2023-08-03 15:30:53 -04:00
2023-06-06 10:37:25 +02:00
2020-05-18 21:19:18 -04:00
2022-04-25 10:00:04 -04:00
2022-04-01 15:03:13 -04:00