From db1aa22297d50fa19939e487b5cc7d1f5088c64e Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 1 Dec 2009 15:53:28 -0800 Subject: [PATCH] Correctly handle division on 32-bit RHEL5 systems by returning dividend. --- module/spl/spl-generic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index 19cdf50462..a13b978cba 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -116,7 +116,9 @@ uint64_t __udivdi3(uint64_t dividend, uint64_t divisor) } else d = divisor; - return do_div(dividend, d); + do_div(dividend, d); + + return dividend; #endif /* HAVE_DIV64_64, HAVE_DIV64_U64 */ } EXPORT_SYMBOL(__udivdi3);