Chengming Zhou 538148f9ba mm/zsmalloc: clarify class per-fullness zspage counts
We always use insert_zspage() and remove_zspage() to update zspage's
fullness location, which will account correctly.

But this special async free path use "splice" instead of remove_zspage(),
so the per-fullness zspage count for ZS_INUSE_RATIO_0 won't decrease.

Clean things up by decreasing when iterate over the zspage free list.

This doesn't actually fix anything.  ZS_INUSE_RATIO_0 is just a
"placeholder" which is never used anywhere.

Link: https://lkml.kernel.org/r/20240627075959.611783-1-chengming.zhou@linux.dev
Signed-off-by: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-07-12 15:52:12 -07:00
..
2024-07-10 12:14:54 -07:00
2024-07-03 19:29:59 -07:00
2024-07-12 15:52:08 -07:00
2023-12-12 10:11:32 +01:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-03 19:30:17 -07:00
2024-05-23 19:40:26 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-03 19:30:19 -07:00
2024-07-06 11:53:19 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-07-12 15:52:09 -07:00