nvme: Fixes u64 division which breaks i386 builds
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 21 Jul 2015 21:08:13 +0000 (15:08 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 21 Jul 2015 21:36:24 +0000 (15:36 -0600)
commitc45f5c9943ce0b16b299b543c2aae12408039027
tree93839ab1a736cad935db2646e314d7260b07d6fe
parent8ffaadf7429270914b8f146ec13cf305e01df20d
nvme: Fixes u64 division which breaks i386 builds

Uses div_u64 for u64 division and round_down, a bitwise operation,
instead of rounddown, which uses a modulus.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c