block: blk_rq_[cur_]_{sectors|bytes}() usage cleanup
authorTejun Heo <tj@kernel.org>
Thu, 7 May 2009 13:24:45 +0000 (22:24 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 11 May 2009 07:50:55 +0000 (09:50 +0200)
commit1011c1b9f2e45ce7c6e38888d2b83936aec38771
tree63f1f8f604631f37df9917a941531de0148f8379
parenta2dec7b36364a5cc564c4d76cf16d2e7d33f5c05
block: blk_rq_[cur_]_{sectors|bytes}() usage cleanup

With the previous changes, the followings are now guaranteed for all
requests in any valid state.

* blk_rq_sectors() == blk_rq_bytes() >> 9
* blk_rq_cur_sectors() == blk_rq_cur_bytes() >> 9

Clean up accessor usages.  Notable changes are

* nbd,i2o_block: end_all used instead of explicit byte count
* scsi_lib: unnecessary conditional on request type removed

[ Impact: cleanup ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Paul Clements <paul.clements@steeleye.com>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/floppy.c
drivers/block/nbd.c
drivers/block/ub.c
drivers/block/z2ram.c
drivers/memstick/core/mspro_block.c
drivers/message/i2o/i2o_block.c
drivers/mtd/mtd_blkdevs.c
drivers/sbus/char/jsflash.c
drivers/scsi/scsi_lib.c