From: Tejun Heo Date: Wed, 3 Jan 2007 08:30:39 +0000 (+0900) Subject: libata: kill qc->nsect and cursect X-Git-Tag: v2.6.21-rc1~274^2~520 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=726f0785b608d09bdd64bdbadc09217ebbf9920e;p=pandora-kernel.git 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed