diff options
author | Kent Overstreet <[email protected]> | 2013-11-23 22:30:22 -0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2015-08-13 12:31:37 -0600 |
commit | c66a14d07c136cc35d4dcb84bfc7bc188be24d4c (patch) | |
tree | 92ffa5e392126cab041c1624dc4a573f3b40e8b8 /lib/mpi/mpiutil.c | |
parent | 54efd50bfd873e2dbf784e0b21a8027ba4299a3e (diff) |
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 <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
[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 <[email protected]>
Signed-off-by: Ming Lin <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions