]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm: zswap: delete unused acomp->is_sleepable
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 11 Dec 2025 02:56:45 +0000 (21:56 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:41 +0000 (19:24 -0800)
This hasn't been used since 7d4c9629b74f ("mm: zswap: use object
read/write APIs instead of object mapping APIs").  Drop it.

Link: https://lkml.kernel.org/r/20251211025645.820517-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c

index ac9b7a60736bc668fb384009af35bf917ba9a734..6bf4f244191440235fef4126f3cd2422e790fade 100644 (file)
@@ -141,7 +141,6 @@ struct crypto_acomp_ctx {
        struct crypto_wait wait;
        u8 *buffer;
        struct mutex mutex;
-       bool is_sleepable;
 };
 
 /*
@@ -781,7 +780,6 @@ static int zswap_cpu_comp_prepare(unsigned int cpu, struct hlist_node *node)
 
        acomp_ctx->buffer = buffer;
        acomp_ctx->acomp = acomp;
-       acomp_ctx->is_sleepable = acomp_is_async(acomp);
        acomp_ctx->req = req;
        mutex_unlock(&acomp_ctx->mutex);
        return 0;