Messages in this thread | | | Date | Mon, 26 Jun 2023 10:13:33 -0700 | From | Minchan Kim <> | Subject | Re: [PATCHv2 1/3] zsmalloc: do not scan for allocated objects in empty zspage |
| |
On Sat, Jun 24, 2023 at 02:12:14PM +0900, Sergey Senozhatsky wrote: > zspage migration can terminate as soon as it moves the last > allocated object from the source zspage. Add a simple helper > zspage_empty() that tests zspage ->inuse on each migration > iteration. > > Suggested-by: Alexey Romanov <AVRomanov@sberdevices.ru> > Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> Acked-by: Minchan Kim <minchan@kernel.org>
| |