linux/drivers/block
Tejun Heo 1011c1b9f2 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>
2009-05-11 09:50:55 +02:00
..
aoe aoe: WIN_* -> ATA_CMD_* 2009-04-01 21:42:24 +02:00
paride block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
amiflop.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
ataflop.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
brd.c brd: fix cacheflushing 2009-04-15 12:10:13 +02:00
cciss_cmd.h cciss: kernel scan thread for MSA2012 2009-04-07 08:12:38 +02:00
cciss_scsi.c
cciss_scsi.h
cciss.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
cciss.h cciss: kernel scan thread for MSA2012 2009-04-07 08:12:38 +02:00
cpqarray.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
cpqarray.h
cryptoloop.c
DAC960.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
DAC960.h
floppy.c block: blk_rq_[cur_]_{sectors|bytes}() usage cleanup 2009-05-11 09:50:55 +02:00
hd.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
ida_cmd.h
ida_ioctl.h
Kconfig mg_disk: fix dependency on libata 2009-04-28 08:14:52 +02:00
loop.c loop: use BIO list management functions 2009-04-28 07:37:28 +02:00
Makefile mflash: initial support 2009-04-07 08:12:38 +02:00
mg_disk.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
nbd.c block: blk_rq_[cur_]_{sectors|bytes}() usage cleanup 2009-05-11 09:50:55 +02:00
pktcdvd.c
ps3disk.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
ps3vram.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
smart1,2.h
sunvdc.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
swim3.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
swim_asm.S m68k: mac - Add SWIM floppy support 2009-03-26 21:15:27 +01:00
swim.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
sx8.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
ub.c block: blk_rq_[cur_]_{sectors|bytes}() usage cleanup 2009-05-11 09:50:55 +02:00
umem.c umem: fix request_queue lock warning 2009-04-24 08:54:21 +02:00
umem.h
viodasd.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
virtio_blk.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
xd.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
xd.h
xen-blkfront.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
xsysace.c block: convert to pos and nr_sectors accessors 2009-05-11 09:50:54 +02:00
z2ram.c block: blk_rq_[cur_]_{sectors|bytes}() usage cleanup 2009-05-11 09:50:55 +02:00