aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/pktcdvd.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-02-05 18:19:29 -0500
committerKent Overstreet <koverstreet@google.com>2013-03-23 17:15:30 -0400
commitaa8b57aa3d1c06ca53312294ee6dfc767ee3ddb3 (patch)
treea5921d44756d32e0555a8ae284db3c16a8386860 /drivers/block/pktcdvd.c
parentf73a1c7d117d07a96d89475066188a2b79e53c48 (diff)
block: Use bio_sectors() more consistently
Bunch of places in the code weren't using it where they could be - this'll reduce the size of the patch that puts bi_sector/bi_size/bi_idx into a struct bvec_iter. Signed-off-by: Kent Overstreet <koverstreet@google.com> CC: Jens Axboe <axboe@kernel.dk> CC: "Ed L. Cashin" <ecashin@coraid.com> CC: Nick Piggin <npiggin@kernel.dk> CC: Jiri Kosina <jkosina@suse.cz> CC: Jim Paris <jim@jtan.com> CC: Geoff Levand <geoff@infradead.org> CC: Alasdair Kergon <agk@redhat.com> CC: dm-devel@redhat.com CC: Neil Brown <neilb@suse.de> CC: Steven Rostedt <rostedt@goodmis.org> Acked-by: Ed Cashin <ecashin@coraid.com>
Diffstat (limited to 'drivers/block/pktcdvd.c')
-rw-r--r--drivers/block/pktcdvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 26938e8e2fc3..2c27744b9ca6 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -2433,7 +2433,7 @@ static void pkt_make_request(struct request_queue *q, struct bio *bio)
2433 cloned_bio->bi_bdev = pd->bdev; 2433 cloned_bio->bi_bdev = pd->bdev;
2434 cloned_bio->bi_private = psd; 2434 cloned_bio->bi_private = psd;
2435 cloned_bio->bi_end_io = pkt_end_io_read_cloned; 2435 cloned_bio->bi_end_io = pkt_end_io_read_cloned;
2436 pd->stats.secs_r += bio->bi_size >> 9; 2436 pd->stats.secs_r += bio_sectors(bio);
2437 pkt_queue_bio(pd, cloned_bio); 2437 pkt_queue_bio(pd, cloned_bio);
2438 return; 2438 return;
2439 } 2439 }