diff options
| author | Chengming Zhou <zhouchengming@bytedance.com> | 2023-12-28 09:45:46 +0000 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 11:58:29 -0800 |
| commit | 8ba2f844f050a82624ba3ad5146aa3c116f506f7 (patch) | |
| tree | e4fb803eafef763c4f2a92656e54571c6872aae3 /mm/swap_state.c | |
| parent | e947ba0bbf470fb3d813383426bdcd3c88fe9a7b (diff) | |
| download | linux-8ba2f844f050a82624ba3ad5146aa3c116f506f7.tar.gz linux-8ba2f844f050a82624ba3ad5146aa3c116f506f7.tar.bz2 linux-8ba2f844f050a82624ba3ad5146aa3c116f506f7.zip | |
mm/zswap: change per-cpu mutex and buffer to per-acomp_ctx
First of all, we need to rename acomp_ctx->dstmem field to buffer, since
we are now using for purposes other than compression.
Then we change per-cpu mutex and buffer to per-acomp_ctx, since them
belong to the acomp_ctx and are necessary parts when used in the
compress/decompress contexts.
So we can remove the old per-cpu mutex and dstmem.
Link: https://lkml.kernel.org/r/20231213-zswap-dstmem-v5-5-9382162bbf05@bytedance.com
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Chris Li <chrisl@kernel.org> (Google)
Reviewed-by: Nhat Pham <nphamcs@gmail.com>
Cc: Barry Song <21cnbao@gmail.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions
