Messages in this thread | | | Date | Mon, 28 Nov 2022 14:28:31 -0500 | From | Johannes Weiner <> | Subject | Re: [PATCH v7 6/6] zsmalloc: Implement writeback mechanism for zsmalloc |
| |
On Mon, Nov 28, 2022 at 11:16:15AM -0800, Nhat Pham wrote: > This commit adds the writeback mechanism for zsmalloc, analogous to the > zbud allocator. Zsmalloc will attempt to determine the coldest zspage > (i.e least recently used) in the pool, and attempt to write back all the > stored compressed objects via the pool's evict handler. > > Signed-off-by: Nhat Pham <nphamcs@gmail.com>
Ok, this now also has the get_first_page() and the cond_resched() that Sergey had asked for. Looks good to me.
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
| |