dm cache: avoid 64 bit division on 32 bit
authorJoe Thornber <ejt@redhat.com>
Wed, 20 Mar 2013 17:21:25 +0000 (17:21 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 20 Mar 2013 17:21:25 +0000 (17:21 +0000)
commit414dd67d50a6b9a11af23bbb68e8fae13d726c8b
tree3a8978760d54eb1f50f524ca66f1273c4d864c82
parent3b6b7813b198b578aa7e04e4047ddb8225c37b7f
dm cache: avoid 64 bit division on 32 bit

Squash various 32bit link errors.

  >> on i386:
  >> drivers/built-in.o: In function `is_discarded_oblock':
  >> dm-cache-target.c:(.text+0x1ea28e): undefined reference to `__udivdi3'
  ...

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-cache-target.c