zfsonlinux/zfs — pull request #1034 by ryao (2012-10-11 04:09:21+00:00)
Title: Fix zfs_write_limit_max integer size mismatch on 32-bit systems

Commit c409e4647f221ab724a0bd10c480ac95447203c3 introduced a number of
module parameters. Of these, ARC unconditionally expected
zfs_write_limit_max to be 64-bit. Unfortunately, the largest size
integer module parameter that Linux supports is unsigned
long, which varies in size depending on the host system's native word
size. The effect was that on 32-bit systems, ARC incorrectly performed
64-bit operations on it. We correct that by changing the extern
declaration to use the unsigned long type, which should cause the
compiler to correctly generate 32-bit arithmetic in ARC.

Closes zfsonlinux/zfs#749

Signed-off-by: Richard Yao