mm: zswap: function ordering: zswap_pools
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 30 Jan 2024 01:36:48 +0000 (20:36 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:44 +0000 (10:24 -0800)
commitc1a0ecb82bdc6e9e972b0adbd74eb56ff33776f9
tree234fad4cd1c0f13225eb34f6bdcdcf22e11e2e53
parent39f3ec8eaa6065873e592857627f18ae17b6c878
mm: zswap: function ordering: zswap_pools

Move the operations against the global zswap_pools list (current pool,
last, find) to the pool section.

Link: https://lkml.kernel.org/r/20240130014208.565554-13-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Nhat Pham <nphamcs@gmail.com>
Cc: Chengming Zhou <zhouchengming@bytedance.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c