summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/io.c
diff options
context:
space:
mode:
authorKent Overstreet2013-11-24 07:30:22 +0100
committerJens Axboe2015-08-13 20:31:37 +0200
commitc66a14d07c136cc35d4dcb84bfc7bc188be24d4c (patch)
tree92ffa5e392126cab041c1624dc4a573f3b40e8b8 /drivers/md/bcache/io.c
parentblock: make generic_make_request handle arbitrarily sized bios (diff)
downloadkernel-qcow2-linux-c66a14d07c136cc35d4dcb84bfc7bc188be24d4c.tar.gz
kernel-qcow2-linux-c66a14d07c136cc35d4dcb84bfc7bc188be24d4c.tar.xz
kernel-qcow2-linux-c66a14d07c136cc35d4dcb84bfc7bc188be24d4c.zip
block: simplify bio_add_page()
Since generic_make_request() can now handle arbitrary size bios, all we have to do is make sure the bvec array doesn't overflow. __bio_add_page() doesn't need to call ->merge_bvec_fn(), where we can get rid of unnecessary code paths. Removing the call to ->merge_bvec_fn() is also fine, as no driver that implements support for BLOCK_PC commands even has a ->merge_bvec_fn() method. Cc: Christoph Hellwig <hch@infradead.org> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> [dpark: rebase and resolve merge conflicts, change a couple of comments, make bio_add_page() warn once upon a cloned bio.] Signed-off-by: Dongsu Park <dpark@posteo.net> Signed-off-by: Ming Lin <ming.l@ssi.samsung.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/bcache/io.c')
0 files changed, 0 insertions, 0 deletions