Skip to contentSkip to conversation

make blk-core.c:request_cachep static again

PATCH In review Adrian Bunk 2 participants 2 messages Feb 13, 2008 – Feb 18, 2008 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make blk-core.c:request_cachep static again

request_cachep needlessly became global.

---
11b0ecec3d7a5208d95dd95392815a4785d70844

block/blk-core.c +1 -1
index 8ff9944..36588ff 100644
@@ -37,7 +37,7 @@ static int __make_request(struct request_queue *q, struct bio *bio);
 /*
  * For the allocated request tables
  */
-struct kmem_cache *request_cachep;
+static struct kmem_cache *request_cachep;
 
 /*
  * For queue allocation
#1 lore raw
Quoted 1 line · Adrian Bunk

request_cachep needlessly became global.

Thanks Adrian, applied all three in this series.

Signature · 1 line
Jens Axboe