]> git.baikalelectronics.ru Git - kernel.git/commit
block: Remove some unnecessary bi_vcnt usage
authorKent Overstreet <koverstreet@google.com>
Thu, 6 Sep 2012 00:31:42 +0000 (17:31 -0700)
committerKent Overstreet <koverstreet@google.com>
Sat, 23 Mar 2013 21:15:31 +0000 (14:15 -0700)
commit56e16b2f0e71ade297ff9c6cf523e5940c30b6f6
treeade275970fd1282cafc6d47753564c821020be8a
parent366166020af21bde14dec1c2d5d5b89800a4bc08
block: Remove some unnecessary bi_vcnt usage

More prep work for immutable bvecs/effecient bio splitting - usage of
bi_vcnt has to be auditing, so getting rid of all the unnecessary usage
makes that easier.

Plus, bio_segments() is really what this code wanted, as it respects the
current value of bi_idx.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
CC: Eric Moore <Eric.Moore@lsi.com>
CC: "James E.J. Bottomley" <JBottomley@parallels.com>
CC: linux-scsi@vger.kernel.org
drivers/message/fusion/mptsas.c
drivers/scsi/libsas/sas_expander.c
drivers/scsi/mpt2sas/mpt2sas_transport.c