NVMe: Abstract out sector to block number conversion
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Thu, 28 Mar 2013 01:28:22 +0000 (21:28 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 16 Apr 2013 19:05:22 +0000 (15:05 -0400)
Introduce nvme_block_nr() to help convert sectors to block numbers.
This fixes an integer overflow in the SCSI conversion layer, and it's
slightly less typing than opencoding it.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Acked-by: Keith Busch <keith.busch@intel.com>

No differences found