Skip to contentSkip to conversation

mm: zswap: delete unused acomp->is_sleepable

PATCH Applied Johannes Weiner 5 participants 6 messages Dec 11, 2025

Subsystems (2)
lore
Share & tools
lore

Johannes Weiner

author maintainer
#0 lore raw

PATCH 1/1 mm: zswap: delete unused acomp->is_sleepable

This hasn't been used since 7d4c9629b74f ("mm: zswap: use object read/write APIs instead of object mapping APIs"). Drop it.

---
 mm/zswap.c | 2 --
 1 file changed, 2 deletions(-)
mm/zswap.c +0 -2
index 5d0f8b13a958..84797ed4d3f5 100644
@@ -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;
Signature · 1 line
2.52.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Johannes Weiner

This hasn't been used since 7d4c9629b74f ("mm: zswap: use object read/write APIs instead of object mapping APIs"). Drop it.

Thanks.

Quoted 24 lines
---
  mm/zswap.c | 2 --
  1 file changed, 2 deletions(-)
mm/zswap.c +0 -2
index 5d0f8b13a958..84797ed4d3f5 100644
@@ -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;
Reviewed-by on v1 1/1
#2 lore raw
In reply to Johannes Weiner
Quoted 21 lines · Johannes Weiner

This hasn't been used since 7d4c9629b74f ("mm: zswap: use object read/write APIs instead of object mapping APIs"). Drop it.

---
 mm/zswap.c | 2 --
 1 file changed, 2 deletions(-)
mm/zswap.c +0 -1
index 5d0f8b13a958..84797ed4d3f5 100644
@@ -141,7 +141,6 @@ struct crypto_acomp_ctx {
 	struct crypto_wait wait;
 	u8 *buffer;
 	struct mutex mutex;
-	bool is_sleepable;
 };
 
 /*

mm/zswap.c static int zswap_cpu_comp_prepare(unsigned int cpu, struct hlist_node *node) · line 785

Quoted 7 lines
mm/zswap.c +0 -1
@@ -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;
Acked-by on v1 1/1
#3 lore raw
In reply to Johannes Weiner
Quoted 6 lines · Johannes Weiner

This hasn't been used since 7d4c9629b74f ("mm: zswap: use object read/write APIs instead of object mapping APIs"). Drop it.

Acked-by Yosry Ahmed <[email protected] mailto:[email protected] >
---
 mm/zswap.c | 2 --
 1 file changed, 2 deletions(-)
mm/zswap.c +0 -2
index 5d0f8b13a958..84797ed4d3f5 100644
@@ -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;
Signature · 1 line
2.52.0
Acked-by on v1 1/1
#4 lore raw
In reply to Johannes Weiner
Quoted 4 lines · Johannes Weiner

This hasn't been used since 7d4c9629b74f ("mm: zswap: use object read/write APIs instead of object mapping APIs"). Drop it.

Quoted 27 lines
---
 mm/zswap.c | 2 --
 1 file changed, 2 deletions(-)
mm/zswap.c +0 -2
index 5d0f8b13a958..84797ed4d3f5 100644
@@ -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;
Signature · 1 line
2.52.0