Tejun Heo f92a26365a libata: change ATA_QCFLAG_DMAMAP semantics
ATA_QCFLAG_DMAMAP was a bit peculiar in that it got set during qc
initialization and cleared if DMA mapping wasn't necessary.  Make it
more straight forward by making the following changes.

* Don't set it during initialization.  Set it after DMA is actually
  mapped.

* Add BUG_ON() to guarantee that there is data to transfer if DMAMAP
  is set.  This always holds for the current code.  The BUG_ON() is
  for docummentation and sanity check.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2008-01-23 05:24:14 -05:00
..
2008-01-23 05:24:10 -05:00
2008-01-10 16:53:12 -05:00
2008-01-23 05:24:10 -05:00
2007-10-20 01:02:48 +02:00
2007-10-19 22:55:03 -04:00
2008-01-23 05:24:13 -05:00
2007-11-23 19:33:27 -05:00
2008-01-23 05:24:10 -05:00
2008-01-23 05:24:10 -05:00
2006-08-10 07:31:37 -04:00
2008-01-23 05:24:10 -05:00
2008-01-23 05:24:10 -05:00
2007-07-02 10:17:42 -04:00