[PATCH] erofs: free pcluster right after decompression if cache decompression is disabled

Gao Xiang hsiangkao at linux.alibaba.com
Wed Aug 14 16:19:48 AEST 2024



On 2024/8/13 18:28, Chunhai Guo wrote:
> When the erofs cache decompression is disabled
> (EROFS_ZIP_CACHE_DISABLED), all pages in pcluster are freed right after
> decompression. There is no need to cache the pcluster as well and it can
> be freed.
> 
> Signed-off-by: Chunhai Guo <guochunhai at vivo.com>

I tend to not implement so much specific code just
for EROFS_ZIP_CACHE_DISABLED, so it you make it common for other
use cases too I think it's more reasonable.

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list