[PATCH] erofs-utils: change temporal buffer to non static
Noboru Asai
asai at sijam.com
Mon Apr 8 19:16:26 AEST 2024
In multi-threaded mode, each thread must use a different buffer in tryrecompress_trailing
function, so change this buffer to non static.
Signed-off-by: Noboru Asai <asai at sijam.com>
---
lib/compress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/compress.c b/lib/compress.c
index 641fde6..7415fda 100644
--- a/lib/compress.c
+++ b/lib/compress.c
@@ -447,7 +447,7 @@ static void tryrecompress_trailing(struct z_erofs_compress_sctx *ctx,
void *out, unsigned int *compressedsize)
{
struct erofs_sb_info *sbi = ctx->ictx->inode->sbi;
- static char tmp[Z_EROFS_PCLUSTER_MAX_SIZE];
+ char tmp[Z_EROFS_PCLUSTER_MAX_SIZE];
unsigned int count;
int ret = *compressedsize;
--
2.44.0
More information about the Linux-erofs
mailing list