Gao Xiang 6a5a8f0a97 erofs: fix memory leak of LZMA global compressed deduplication
[ Upstream commit 75a5221630fe5aa3fedba7a06be618db0f79ba1e ]

When stressing microLZMA EROFS images with the new global compressed
deduplication feature enabled (`-Ededupe`), I found some short-lived
temporary pages weren't properly released, which could slowly cause
unexpected OOMs hours later.

Let's fix it now (LZ4 and DEFLATE don't have this issue.)

Fixes: 5c2a64252c5d ("erofs: introduce partial-referenced pclusters")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230907050542.97152-1-hsiangkao@linux.alibaba.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 22:00:39 +02:00
..
2023-07-19 16:20:59 +02:00
2023-07-19 16:20:59 +02:00
2022-05-18 00:11:19 +08:00
2022-05-18 00:11:19 +08:00
2022-09-27 17:27:45 +08:00
2021-10-25 08:22:59 +08:00
2023-07-19 16:20:59 +02:00