diff options
author | 2024-04-13 02:24:05 +0000 | |
---|---|---|
committer | 2024-05-05 17:53:37 -0700 | |
commit | 82e0f8e47b406bb5948c2300a02ac6ede21532c1 (patch) | |
tree | 1f38bb9ba2ce7f34ea7f9621e6aa420b49d128c4 /lib/xarray.c | |
parent | mm: zswap: always shrink in zswap_store() if zswap_pool_reached_full (diff) | |
download | wireguard-linux-82e0f8e47b406bb5948c2300a02ac6ede21532c1.tar.xz wireguard-linux-82e0f8e47b406bb5948c2300a02ac6ede21532c1.zip |
mm: zswap: refactor limit checking from zswap_store()
Refactor limit and acceptance threshold checking outside of zswap_store().
This code will be moved around in a following patch, so it would be
cleaner to move a function call around.
Link: https://lkml.kernel.org/r/20240413022407.785696-3-yosryahmed@google.com
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Reviewed-by: Nhat Pham <nphamcs@gmail.com>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions