mm: zswap: function ordering: compress & decompress functions
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 30 Jan 2024 01:36:53 +0000 (20:36 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:44 +0000 (10:24 -0800)
commitf91e81d31c1ef7561559368f29e4bb6eddf13ea1
tree5b25311833f43d0ad8fb7661761d68818d093aaa
parent36034bf6fcdb1281e3f8db27d68b6516a3aed4c7
mm: zswap: function ordering: compress & decompress functions

Writeback needs to decompress. Move the (de)compression API above what
will be the consolidated shrinking/writeback code.

Link: https://lkml.kernel.org/r/20240130014208.565554-18-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