diff options
author | Denis ChengRq <crquan@gmail.com> | 2008-10-09 02:57:05 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:57:05 -0400 |
commit | 6feef531f55cf4a20fd9eb39f5352e5745203603 (patch) | |
tree | 2c52b800edcbdf01abefcf27e900985c087f1b36 /include/linux/bio.h | |
parent | ad3316bf4eeb53c89164f759767f911072b56203 (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 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index fe12d0f9ebaa..fb97221d7c30 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -300,9 +300,7 @@ struct bio_pair { | |||
300 | atomic_t cnt; | 300 | atomic_t cnt; |
301 | int error; | 301 | int error; |
302 | }; | 302 | }; |
303 | extern struct bio_pair *bio_split(struct bio *bi, mempool_t *pool, | 303 | extern struct bio_pair *bio_split(struct bio *bi, int first_sectors); |
304 | int first_sectors); | ||
305 | extern mempool_t *bio_split_pool; | ||
306 | extern void bio_pair_release(struct bio_pair *dbio); | 304 | extern void bio_pair_release(struct bio_pair *dbio); |
307 | 305 | ||
308 | extern struct bio_set *bioset_create(int, int); | 306 | extern struct bio_set *bioset_create(int, int); |