]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: core: Introduce scsi_get_sector()
authorBart Van Assche <bvanassche@acm.org>
Wed, 9 Jun 2021 03:39:24 +0000 (23:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:12:30 +0000 (15:12 +0100)
commitf230e6d4249b9ccdcb571077023cecabf91ecbb1
tree76679aa65e1427a75f7c7abaf5a92ed6ff3fb3bc
parent294d66c35a4e019a9dfe889fe382adce1cc3773e
scsi: core: Introduce scsi_get_sector()

[ Upstream commit f0f214fe8cd32224267ebea93817b8c32074623d ]

Since scsi_get_lba() returns a sector_t value instead of the LBA, the name
of that function is confusing. Introduce an identical function
scsi_get_sector().

Link: https://lore.kernel.org/r/20210513223757.3938-2-bvanassche@acm.org
Link: https://lore.kernel.org/r/20210609033929.3815-11-martin.petersen@oracle.com
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Message-Id: <20210609033929.3815-11-martin.petersen@oracle.com>
Stable-dep-of: 066c5b46b6ea ("scsi: core: Always send batch on reset or error handling command")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/scsi/scsi_cmnd.h