[PATCH] erofs: free pcluster right after decompression if cache decompression is disabled
Chunhai Guo
guochunhai at vivo.com
Wed Aug 14 21:37:30 AEST 2024
在 2024/8/14 14:19, Gao Xiang 写道:
>
> 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.
I will try to make another common patch for this.
Thank you for your suggestion.
>>
>> Thanks,
>> Gao Xiang
More information about the Linux-erofs
mailing list