commit | 063cc6d5591ea9c0631b81ac5c7b829d99738b2f | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | Wed Mar 27 21:28:22 2013 -0400 |
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | Tue Apr 16 15:05:22 2013 -0400 |
tree | 5a61528a0a76394666fdc42d6b51bf576a7c1002 | |
parent | acb7aa0db09b8abd38abeb84334a8a27a52fbb1b [diff] |
NVMe: Abstract out sector to block number conversion 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>