]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/ata/libata-core.c
libata: clean up horkage handling
authorTejun Heo <htejun@gmail.com>
Thu, 5 Jul 2007 04:31:27 +0000 (13:31 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 11 Jul 2007 01:30:33 +0000 (21:30 -0400)
commit75683fe7153c3817bb4fd4491e2a5913af6c463e
tree5c7bb12e577a328b41df16d036c7060309493f44
parent39ce7128066f2ac5954bcda9f07f429f28166da3
libata: clean up horkage handling

Horkage handling had the following problems.

* dev->horkage was positioned after ATA_DEVICE_CLEAR_OFFSET, so it was
  cleared before the device is configured.  This broke
  HORKAGE_DIAGNOSTIC.

* Some used dev->horkage while others called ata_device_blacklisted()
  directly.  This was at best confusing.

This patch moves dev->horkage right after dev->flags and set the field
according to the blacklist during device configuration.  All users
test against dev->horkage.  ata_device_blacklisted() now has only one
user, make it static.  While at it, rename it to ata_dev_blacklisted()
for consistency.

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