diff options
author | 2025-02-05 17:27:16 +0800 | |
---|---|---|
committer | 2025-03-16 22:06:06 -0700 | |
commit | a46a6bc21c223b852ff324d7c7ef3da868b90fd0 (patch) | |
tree | ff284a78439656eb9fa6c1119f47cf21e6dfc772 /mm/swap_state.c | |
parent | mm/swapfile.c: update the code comment above swap_count_continued() (diff) | |
download | wireguard-linux-a46a6bc21c223b852ff324d7c7ef3da868b90fd0.tar.xz wireguard-linux-a46a6bc21c223b852ff324d7c7ef3da868b90fd0.zip |
mm/swapfile.c: optimize code in setup_clusters()
In the last 'for' loop inside setup_clusters(), using two local variable
'k' and 'j' are obvisouly redundant. Using 'j' is enough and simpler.
And also move macro SWAP_CLUSTER_COLS close to its only user
setup_clusters().
Link: https://lkml.kernel.org/r/20250205092721.9395-8-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions