aboutsummaryrefslogtreecommitdiffstats
path: root/block/ll_rw_blk.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-07-18 16:24:11 -0400
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-09-30 14:29:38 -0400
commit1ea25ecb7256978947c258f08a30c878eebe9edb (patch)
treed0dd75162f20afdf97a086bb22604d2aeb9c263e /block/ll_rw_blk.c
parent4050cf1674c632c73801a561689543d4887df2ef (diff)
[PATCH] Audit block layer inlines
Kill a few inlines that bring in too much code to more than one location Shrinks kernel text by about 300 bytes on 32-bit x86. Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r--block/ll_rw_blk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index 508548b834f1..4b7b4461e8d6 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -277,7 +277,7 @@ void blk_queue_make_request(request_queue_t * q, make_request_fn * mfn)
277 277
278EXPORT_SYMBOL(blk_queue_make_request); 278EXPORT_SYMBOL(blk_queue_make_request);
279 279
280static inline void rq_init(request_queue_t *q, struct request *rq) 280static void rq_init(request_queue_t *q, struct request *rq)
281{ 281{
282 INIT_LIST_HEAD(&rq->queuelist); 282 INIT_LIST_HEAD(&rq->queuelist);
283 INIT_LIST_HEAD(&rq->donelist); 283 INIT_LIST_HEAD(&rq->donelist);
@@ -589,8 +589,8 @@ static int flush_dry_bio_endio(struct bio *bio, unsigned int bytes, int error)
589 return 0; 589 return 0;
590} 590}
591 591
592static inline int ordered_bio_endio(struct request *rq, struct bio *bio, 592static int ordered_bio_endio(struct request *rq, struct bio *bio,
593 unsigned int nbytes, int error) 593 unsigned int nbytes, int error)
594{ 594{
595 request_queue_t *q = rq->q; 595 request_queue_t *q = rq->q;
596 bio_end_io_t *endio; 596 bio_end_io_t *endio;
@@ -2002,7 +2002,7 @@ static inline void blk_free_request(request_queue_t *q, struct request *rq)
2002 mempool_free(rq, q->rq.rq_pool); 2002 mempool_free(rq, q->rq.rq_pool);
2003} 2003}
2004 2004
2005static inline struct request * 2005static struct request *
2006blk_alloc_request(request_queue_t *q, int rw, int priv, gfp_t gfp_mask) 2006blk_alloc_request(request_queue_t *q, int rw, int priv, gfp_t gfp_mask)
2007{ 2007{
2008 struct request *rq = mempool_alloc(q->rq.rq_pool, gfp_mask); 2008 struct request *rq = mempool_alloc(q->rq.rq_pool, gfp_mask);