]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libata: kill qc->nsect and cursect
authorTejun Heo <htejun@gmail.com>
Wed, 3 Jan 2007 08:30:39 +0000 (17:30 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Feb 2007 22:39:31 +0000 (17:39 -0500)
commit726f0785b608d09bdd64bdbadc09217ebbf9920e
treecefc97e9d5fefb2735b1b7a5ca22d3b3cc742b13
parent16454445e1f0ca21ca2f29accb58478a7ff765a2
libata: kill qc->nsect and cursect

libata used two separate sets of variables to record request size and
current offset for ATA and ATAPI.  This is confusing and fragile.
This patch replaces qc->nsect/cursect with qc->nbytes/curbytes and
kills them.  Also, ata_pio_sector() is updated to use bytes for
qc->cursg_ofs instead of sectors.  The field used to be used in bytes
for ATAPI and in sectors for ATA.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
drivers/ata/libata-scsi.c
drivers/ata/pata_pdc202xx_old.c
drivers/ata/sata_qstor.c
include/linux/libata.h