]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/shmem: remove unused entry_order after large swapin rework
authorJackie Liu <liuyun01@kylinos.cn>
Mon, 8 Sep 2025 06:26:14 +0000 (14:26 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:26:04 +0000 (17:26 -0700)
commit3ca4060a3ad8c3f6e77c87f849309a112204a384
treef2c643340e0c131b7f8fb1234a80c5b46a45c6f2
parentfb58f57d14001858cd0bef705435b8d37684b3ec
mm/shmem: remove unused entry_order after large swapin rework

After commit 93c0476e7057 ("mm/shmem, swap: rework swap entry and index
calculation for large swapin"), xas_get_order() will never return a
non-zero value for `entry_order` in shmem_split_large_entry().  As a
result, the local variable `entry_order` is effectively unused.

Clean up the code by removing `entry_order` and directly using
`cur_order`.  This change is purely a refactor and has no functional
impact.

No functional change intended.

Link: https://lkml.kernel.org/r/20250908062614.89880-1-liu.yun@linux.dev
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c