Skip to contentSkip to conversation

block: Remove the ALLOC_CACHE_SLACK constant

PATCH Applied Bart Van Assche 2 participants 2 messages Feb 9, 2023 – Feb 10, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Remove the ALLOC_CACHE_SLACK constant

Commit b99182c501c3 ("bio: add pcpu caching for non-polling bio_put") removed the code that uses this constant. Hence also remove the constant itself.

---
 block/bio.c | 1 -
 1 file changed, 1 deletion(-)
block/bio.c +0 -1
index 7447302141b7..88cd3f67a3af 100644
@@ -26,7 +26,6 @@
 #include "blk-cgroup.h"
 
 #define ALLOC_CACHE_THRESHOLD	16
-#define ALLOC_CACHE_SLACK	64
 #define ALLOC_CACHE_MAX		256
 
 struct bio_alloc_cache {
maintainer Applied
#1 lore raw
Quoted 5 lines · Bart Van Assche

Commit b99182c501c3 ("bio: add pcpu caching for non-polling bio_put") removed the code that uses this constant. Hence also remove the constant itself.

Applied, thanks!

[1/1] block: Remove the ALLOC_CACHE_SLACK constant

      commit: 9af9935494e4b86ec3c44ec42779f08c4ba79ffe

Best regards,

Signature · 1 line
Jens Axboe