Fix module probe failure on 32-bit systems
authorYing Zhu <casualfisher@gmail.com>
Thu, 27 Jun 2013 11:41:30 +0000 (19:41 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 27 Jun 2013 17:01:25 +0000 (10:01 -0700)
commitc12936b141e7479a1402561e9e528731d763747e
tree136f8631b9c65657db8a66c2720b5d46766be233
parent88c283952f0bfeab54612f9ce666601d83c4244f
Fix module probe failure on 32-bit systems

Previous commit 7ef5e54e2e28884a04dc800657967b891239e933 caused
module probe failure on 32-bit systems, dmesg showed

  Unknown symbol __moddi3

This was caused by the modulo operation 'gethrtime() % tqs->stqs_count'
in the committed code.  Instead of implementing __moddi3 for all 32-bit
systems, Behlendorf advised we can just cast the return value of
gethrtime() into a uint64_t, since gethrtime does not return negative
value on all circumstances we need not care about the potential overflow.

Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1551
module/zfs/spa.c