block: Kill bi_destructor
authorKent Overstreet <koverstreet@google.com>
Thu, 6 Sep 2012 22:35:00 +0000 (15:35 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Sep 2012 08:35:39 +0000 (10:35 +0200)
commit4254bba17d92d53822a56ebc2a0c1eb7e2a71155
tree77668d39949a0751c5e9ef8d0fb47b96392e84e5
parentccc5c9ca6aac08218b1ba52afd07a1a9864c8c5d
block: Kill bi_destructor

Now that we've got generic code for freeing bios allocated from bio
pools, this isn't needed anymore.

This patch also makes bio_free() static, since without bi_destructor
there should be no need for it to be called anywhere else.

bio_free() is now only called from bio_put, so we can refactor those a
bit - move some code from bio_put() to bio_free() and kill the redundant
bio->bi_next = NULL.

v5: Switch to BIO_KMALLOC_POOL ((void *)~0), per Boaz
v6: BIO_KMALLOC_POOL now NULL, drop bio_free's EXPORT_SYMBOL
v7: No #define BIO_KMALLOC_POOL anymore

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/biodoc.txt
block/blk-core.c
fs/bio.c
include/linux/bio.h
include/linux/blk_types.h