block: simplify and cleanup bvec pool handling
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jul 2016 09:28:42 +0000 (11:28 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 20 Jul 2016 23:37:02 +0000 (17:37 -0600)
commited996a52c868b62c4e5bf529cb4ccb44bcfa2f8e
tree83c3fbdb4cd912fb925b5aee2ca45b8054a4aae3
parent70246286e94c335b5bea0cbc68a17a96dd620281
block: simplify and cleanup bvec pool handling

Instead of a flag and an index just make sure an index of 0 means
no need to free the bvec array.  Also move the constants related
to the bvec pools together and use a consistent naming scheme for
them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio-integrity.c
block/bio.c
drivers/md/bcache/io.c
include/linux/bio.h
include/linux/blk_types.h