Re: [PATCH v2] erofs: free pclusters if no cached folio attached

2024-11-10 Thread Gao Xiang
Hi Chunhai, On 2024/11/1 14:38, Chunhai Guo wrote: Once a pcluster is fully decompressed and there are no attached cached folios, its corresponding `struct z_erofs_pcluster` will be freed. This will significantly reduce the frequency of calls to erofs_shrink_scan() and the memory allocated for `

[PATCH v2] erofs: free pclusters if no cached folio attached

2024-10-31 Thread Chunhai Guo via Linux-erofs
Once a pcluster is fully decompressed and there are no attached cached folios, its corresponding `struct z_erofs_pcluster` will be freed. This will significantly reduce the frequency of calls to erofs_shrink_scan() and the memory allocated for `struct z_erofs_pcluster`. The tables below show appro