Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: libata-eh: use bool for fastdrain in ata_eh_set_pending()

Use the bool type for the fastdrain argument of ata_eh_set_pending(), as
it should be.

No functional changes.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://lore.kernel.org/r/20250704104552.310630-1-dlemoal@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>

authored by

Damien Le Moal and committed by
Niklas Cassel
c5fccfe9 7aae547b

+4 -4
+4 -4
drivers/ata/libata-eh.c
··· 907 907 * LOCKING: 908 908 * spin_lock_irqsave(host lock) 909 909 */ 910 - static void ata_eh_set_pending(struct ata_port *ap, int fastdrain) 910 + static void ata_eh_set_pending(struct ata_port *ap, bool fastdrain) 911 911 { 912 912 unsigned int cnt; 913 913 ··· 947 947 struct ata_port *ap = qc->ap; 948 948 949 949 qc->flags |= ATA_QCFLAG_EH; 950 - ata_eh_set_pending(ap, 1); 950 + ata_eh_set_pending(ap, true); 951 951 952 952 /* The following will fail if timeout has already expired. 953 953 * ata_scsi_error() takes care of such scmds on EH entry. ··· 969 969 if (ap->pflags & ATA_PFLAG_INITIALIZING) 970 970 return; 971 971 972 - ata_eh_set_pending(ap, 1); 972 + ata_eh_set_pending(ap, true); 973 973 scsi_schedule_eh(ap->scsi_host); 974 974 975 975 trace_ata_std_sched_eh(ap); ··· 1020 1020 int tag, nr_aborted = 0; 1021 1021 1022 1022 /* we're gonna abort all commands, no need for fast drain */ 1023 - ata_eh_set_pending(ap, 0); 1023 + ata_eh_set_pending(ap, false); 1024 1024 1025 1025 /* include internal tag in iteration */ 1026 1026 ata_qc_for_each_with_internal(ap, qc, tag) {