Johannes Weiner 39f3ec8eaa mm: zswap: function ordering: pool refcounting
Move pool refcounting functions into the pool section. First the
destroy functions, then the get and put which uses them.

__zswap_pool_empty() has an upward reference to the global
zswap_pools, to sanity check it's not the currently active pool that's
being freed. That gets the forward decl for zswap_pool_current().

This puts the get and put function above all callers, so kill the
forward decls as well.

Link: https://lkml.kernel.org/r/20240130014208.565554-12-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>
2024-02-22 10:24:43 -08:00
..
2024-01-17 13:03:37 -08:00
2024-02-21 16:00:03 -08:00
2023-12-12 10:11:32 +01:00
2024-02-22 10:24:40 -08:00
2024-01-18 15:16:57 -08:00
2023-04-12 17:36:23 -07:00
2024-01-17 13:03:37 -08:00
2024-02-22 10:24:40 -08:00
2024-02-21 16:00:03 -08:00
2024-02-10 08:02:48 -08:00
2024-01-10 16:43:55 -08:00
2023-06-23 16:59:30 -07:00
2023-04-12 17:36:23 -07:00