2008-02-13 21:29:42

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make blk-core.c:request_cachep static again

request_cachep needlessly became global.

Signed-off-by: Adrian Bunk <[email protected]>

---
11b0ecec3d7a5208d95dd95392815a4785d70844
diff --git a/block/blk-core.c b/block/blk-core.c
index 8ff9944..36588ff 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -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


2008-02-18 12:49:53

by Jens Axboe

[permalink] [raw]
Subject: Re: [2.6 patch] make blk-core.c:request_cachep static again

On Wed, Feb 13 2008, Adrian Bunk wrote:
> request_cachep needlessly became global.

Thanks Adrian, applied all three in this series.

--
Jens Axboe