summaryrefslogtreecommitdiffstats
path: root/include/math-emu/single.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2013-03-28 02:28:22 +0100
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2013-04-16 21:05:22 +0200
commit063cc6d5591ea9c0631b81ac5c7b829d99738b2f (patch)
tree5a61528a0a76394666fdc42d6b51bf576a7c1002 /include/math-emu/single.h
parentNVMe: Use round_jiffies_relative() for the periodic, once-per-second timer (diff)
downloadlinux-063cc6d5591ea9c0631b81ac5c7b829d99738b2f.tar.xz
linux-063cc6d5591ea9c0631b81ac5c7b829d99738b2f.zip
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>
Diffstat (limited to 'include/math-emu/single.h')
0 files changed, 0 insertions, 0 deletions