Random distribution 32-bit fixes
authorJens Axboe <axboe@kernel.dk>
Mon, 17 Sep 2018 17:00:50 +0000 (11:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Sep 2018 17:00:50 +0000 (11:00 -0600)
commitabb60c32c26d6421283d2a72170508dfb2b94507
treeee809dbb1edb67e54e9cdcdc445ef8b2180ff35d
parenta0c84dd4354eaf0a84b8bf0a3126f65301f2206f
Random distribution 32-bit fixes

We calculate and use nranges as an unsigned long, but that can
be 32-bit on some platforms and hence overflow.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
filesetup.c
lib/zipf.c
lib/zipf.h