diff options
author | Christoph Hellwig <hch@lst.de> | 2016-07-19 12:28:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-21 02:37:02 +0300 |
commit | ed996a52c868b62c4e5bf529cb4ccb44bcfa2f8e (patch) | |
tree | 83c3fbdb4cd912fb925b5aee2ca45b8054a4aae3 /drivers | |
parent | 70246286e94c335b5bea0cbc68a17a96dd620281 (diff) | |
download | linux-ed996a52c868b62c4e5bf529cb4ccb44bcfa2f8e.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/bcache/io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/bcache/io.c b/drivers/md/bcache/io.c index fd885cc2afad..e97b0acf7b8d 100644 --- a/drivers/md/bcache/io.c +++ b/drivers/md/bcache/io.c @@ -25,7 +25,6 @@ struct bio *bch_bbio_alloc(struct cache_set *c) struct bio *bio = &b->bio; bio_init(bio); - bio->bi_flags |= BIO_POOL_NONE << BIO_POOL_OFFSET; bio->bi_max_vecs = bucket_pages(c); bio->bi_io_vec = bio->bi_inline_vecs; |