aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2024-02-20 06:53:02 +0000
committerAndrew Morton <akpm@linux-foundation.org>2024-02-23 17:48:32 -0800
commitce335e0723470203ca3498d70de2eb97e6869a06 (patch)
tree80c4a21d1602a59602745b489b0562b8219d5cb3 /mm/compaction.c
parentmm/zsmalloc: remove_zspage() don't need fullness parameter (diff)
downloadwireguard-linux-ce335e0723470203ca3498d70de2eb97e6869a06.tar.xz
wireguard-linux-ce335e0723470203ca3498d70de2eb97e6869a06.zip
mm/zsmalloc: remove get_zspage_mapping()
Actually we seldom use the class_idx returned from get_zspage_mapping(), only the zspage->fullness is useful, just use zspage->fullness to remove this helper. Note zspage->fullness is not stable outside pool->lock, remove redundant "VM_BUG_ON(fullness != ZS_INUSE_RATIO_0)" in async_free_zspage() since we already have the same VM_BUG_ON() in __free_zspage(), which is safe to access zspage->fullness with pool->lock held. Link: https://lkml.kernel.org/r/20240220-b4-zsmalloc-cleanup-v1-3-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>
Diffstat (limited to 'mm/compaction.c')
0 files changed, 0 insertions, 0 deletions