diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 23:12:45 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-28 17:18:24 -0500 |
commit | bbc3a46065d08f9ab3412b1f26bbfa778c444833 (patch) | |
tree | 482bccdd291f8bdcad1ea1350cfd3868ee96c327 /fs/bcachefs/bcachefs.h | |
parent | 3f3ae1250e739fb446639efad0ba916ba0a012f0 (diff) | |
download | linux-stable-bbc3a46065d08f9ab3412b1f26bbfa778c444833.tar.gz linux-stable-bbc3a46065d08f9ab3412b1f26bbfa778c444833.tar.bz2 linux-stable-bbc3a46065d08f9ab3412b1f26bbfa778c444833.zip |
bcachefs: Fix zstd compress workspace size
zstd apparently lies about the size of the compression workspace it
requires; if we double it compression succeeds.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index e9d753b04a90..dfa22f9d9a1d 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -931,7 +931,7 @@ struct bch_fs { mempool_t compression_bounce[2]; mempool_t compress_workspace[BCH_COMPRESSION_TYPE_NR]; mempool_t decompress_workspace; - ZSTD_parameters zstd_params; + size_t zstd_workspace_size; struct crypto_shash *sha256; struct crypto_sync_skcipher *chacha20; |