mm/zsmalloc: remove_zspage() don't need fullness parameter
authorChengming Zhou <zhouchengming@bytedance.com>
Tue, 20 Feb 2024 06:53:01 +0000 (06:53 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 24 Feb 2024 01:48:32 +0000 (17:48 -0800)
commit67eaedc1c52f0ac3ea99e4fc0bc3d7940344b94b
tree8bda498007f07c7d45cc4c1df7dde8794f2b8a61
parenta6a8cdfdde43b6231dd1ed61b8a7a6ee55956376
mm/zsmalloc: remove_zspage() don't need fullness parameter

We must remove_zspage() from its current fullness list, then use
insert_zspage() to update its fullness and insert to new fullness list.
Obviously, remove_zspage() doesn't need the fullness parameter.

Link: https://lkml.kernel.org/r/20240220-b4-zsmalloc-cleanup-v1-2-5c5ee4ccdd87@bytedance.com
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c