aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorDenis ChengRq <crquan@gmail.com>2008-10-09 02:57:05 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:57:05 -0400
commit6feef531f55cf4a20fd9eb39f5352e5745203603 (patch)
tree2c52b800edcbdf01abefcf27e900985c087f1b36 /drivers/md/raid10.c
parentad3316bf4eeb53c89164f759767f911072b56203 (diff)
block: mark bio_split_pool static
Since all bio_split calls refer the same single bio_split_pool, the bio_split function can use bio_split_pool directly instead of the mempool_t parameter; then the mempool_t parameter can be removed from bio_split param list, and bio_split_pool is only referred in fs/bio.c file, can be marked static. Signed-off-by: Denis ChengRq <crquan@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 5f990133f5ef..8bdc9bfc2887 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -817,7 +817,7 @@ static int make_request(struct request_queue *q, struct bio * bio)
817 /* This is a one page bio that upper layers 817 /* This is a one page bio that upper layers
818 * refuse to split for us, so we need to split it. 818 * refuse to split for us, so we need to split it.
819 */ 819 */
820 bp = bio_split(bio, bio_split_pool, 820 bp = bio_split(bio,
821 chunk_sects - (bio->bi_sector & (chunk_sects - 1)) ); 821 chunk_sects - (bio->bi_sector & (chunk_sects - 1)) );
822 if (make_request(q, &bp->bio1)) 822 if (make_request(q, &bp->bio1))
823 generic_make_request(&bp->bio1); 823 generic_make_request(&bp->bio1);