diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2024-01-30 04:36:47 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-22 21:24:43 +0300 |
commit | 39f3ec8eaa6065873e592857627f18ae17b6c878 (patch) | |
tree | f3251681b94168c096a9baefd7e7b7cd400fa82e /security/lsm_syscalls.c | |
parent | a984649b5c1f34103638a960b255bd695c2a9445 (diff) | |
download | linux-39f3ec8eaa6065873e592857627f18ae17b6c878.tar.xz |
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>
Diffstat (limited to 'security/lsm_syscalls.c')
0 files changed, 0 insertions, 0 deletions