]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/compress.c
Update bcachefs sources to c3e4d892b77b mean and variance: Promote to lib/math
[bcachefs-tools-debian] / libbcachefs / compress.c
index 64bdafe3190b8bd0be89ea5dd7d01447bddd040d..51af8ea230edbf997756e51ac37cfe3cfc158341 100644 (file)
@@ -576,7 +576,7 @@ static int __bch2_fs_compress_init(struct bch_fs *c, u64 features)
         * ZSTD is lying: if we allocate the size of the workspace it says it
         * requires, it returns memory allocation errors
         */
-       c->zstd_workspace_size = zstd_cctx_workspace_bound(&params.cParams) * 2;
+       c->zstd_workspace_size = zstd_cctx_workspace_bound(&params.cParams);
 
        struct {
                unsigned                        feature;