]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] libata: kill sht->max_sectors
authorTejun Heo <htejun@gmail.com>
Sun, 12 Feb 2006 14:32:59 +0000 (23:32 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 12 Feb 2006 19:36:30 +0000 (14:36 -0500)
The previous dev->max_sectors patch made sht->max_sectors meaningless.
Kill all initializations of sht->max_sectors.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
15 files changed:
drivers/scsi/ahci.c
drivers/scsi/ata_piix.c
drivers/scsi/pdc_adma.c
drivers/scsi/sata_mv.c
drivers/scsi/sata_nv.c
drivers/scsi/sata_promise.c
drivers/scsi/sata_qstor.c
drivers/scsi/sata_sil.c
drivers/scsi/sata_sil24.c
drivers/scsi/sata_sis.c
drivers/scsi/sata_svw.c
drivers/scsi/sata_sx4.c
drivers/scsi/sata_uli.c
drivers/scsi/sata_via.c
drivers/scsi/sata_vsc.c

index 23caa0c4019b78e57ecbcff9879ec4cca45031f3..1c2ab3dede71726c8fe31b698591bbb234c78181 100644 (file)
@@ -211,7 +211,6 @@ static struct scsi_host_template ahci_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = AHCI_MAX_SG,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = AHCI_USE_CLUSTERING,
index 8e0529601730f2c73a57a261d14996c28a6da8a2..4cc1108f721a857b38b37b6971b1417106875893 100644 (file)
@@ -185,7 +185,6 @@ static struct scsi_host_template piix_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index d0ad3ebe968500809423b84f10790881747254b4..5f33cc932e70dfb20dca425183238cdb406820d7 100644 (file)
@@ -148,7 +148,6 @@ static struct scsi_host_template adma_ata_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ENABLE_CLUSTERING,
index 732cb64a4d1be586bcd33d78a0bbb25141565f1d..c158de2e757d32c0deab08616d2d51b05ae5ee40 100644 (file)
@@ -383,7 +383,6 @@ static struct scsi_host_template mv_sht = {
        .can_queue              = MV_USE_Q_DEPTH,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = MV_MAX_SG_CT / 2,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index cdfeb9aa600bb7a065beac4d821e0f3e34d367b0..caffadc2e0aed630b6ceeac6d3f6802c85cae33e 100644 (file)
@@ -234,7 +234,6 @@ static struct scsi_host_template nv_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index c9dfd93709199cca357930338b36a573b5b0423d..ba2b7a0983dbfc3f40e946050541152669a05441 100644 (file)
@@ -116,7 +116,6 @@ static struct scsi_host_template pdc_ata_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index 955131b432062ae10b759b74886028bb86d62891..286482630be30c7411cc4c4596e6eec591c4d3a2 100644 (file)
@@ -137,7 +137,6 @@ static struct scsi_host_template qs_ata_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = QS_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        //FIXME .use_clustering         = ATA_SHT_USE_CLUSTERING,
index 6c482c8be254fdfa37f406bd14d7a9f0c8f98cc9..15346888faf273b50960d2b6956a0ff4db4a7bc2 100644 (file)
@@ -140,7 +140,6 @@ static struct scsi_host_template sil_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index 24020c68903a833eb28c051ce8d41847537e00dd..a0e35a2621569ad2cec6f4e9cac9f54627e56710 100644 (file)
@@ -285,7 +285,6 @@ static struct scsi_host_template sil24_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index 2f1815715705805a76d69b2b3727c1fb578f9761..7fd45f86de99b575f4a863837b2aaca9c882ee9b 100644 (file)
@@ -92,7 +92,6 @@ static struct scsi_host_template sis_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = ATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index f369c3003adfa5fc3c0d7a40d6db4d6ec56b8e19..4aaccd53e7367efc5069cec701f7c4da39df3be0 100644 (file)
@@ -293,7 +293,6 @@ static struct scsi_host_template k2_sata_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index e158f7a34d626edaff2f2a6146177cc984cb34ce..9f8a76815402bd831717ec7f4b8b6da944f456c8 100644 (file)
@@ -187,7 +187,6 @@ static struct scsi_host_template pdc_sata_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index c500f24909028b197de21659dd60e3032b601c2b..37a487b7d655a1696a4ef2c74b011db3c16d0454 100644 (file)
@@ -80,7 +80,6 @@ static struct scsi_host_template uli_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index 2e20887dc88f4c042a69031a4a33a2c0509b5b5d..ff65a0b0457fa8cc914332d5392e81eef7037d63 100644 (file)
@@ -99,7 +99,6 @@ static struct scsi_host_template svia_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,
index cf1f8a61bda01e56d2c97edc1102568d02afdedb..e124db8e828480405b86ac6a7b937115ecd32c78 100644 (file)
@@ -228,7 +228,6 @@ static struct scsi_host_template vsc_sata_sht = {
        .can_queue              = ATA_DEF_QUEUE,
        .this_id                = ATA_SHT_THIS_ID,
        .sg_tablesize           = LIBATA_MAX_PRD,
-       .max_sectors            = ATA_MAX_SECTORS,
        .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,
        .emulated               = ATA_SHT_EMULATED,
        .use_clustering         = ATA_SHT_USE_CLUSTERING,