summaryrefslogtreecommitdiff
path: root/lib/lfsr.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-11-23 18:41:11 -0700
committerJens Axboe <axboe@fb.com>2014-11-23 18:41:11 -0700
commit6f49f8bc80fbeff3d24cf84278d2611db0ec6f6c (patch)
tree0fd2fbe7ad53a17f307c991d4f106b79c4170201 /lib/lfsr.h
parentdf8fb6097058098f1c2f7c2cf4019640561768df (diff)
downloadfio-6f49f8bc80fbeff3d24cf84278d2611db0ec6f6c.tar.gz
fio-6f49f8bc80fbeff3d24cf84278d2611db0ec6f6c.tar.bz2
lfsr: don't pass in last value to lfsr_next()
It's cached in the 'fl' struct. This means we can move the max block calculation outside if the lfsr part, too. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/lfsr.h')
-rw-r--r--lib/lfsr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lfsr.h b/lib/lfsr.h
index 187abf2f..c2d55693 100644
--- a/lib/lfsr.h
+++ b/lib/lfsr.h
@@ -22,7 +22,7 @@ struct fio_lfsr {
unsigned int spin;
};
-int lfsr_next(struct fio_lfsr *fl, uint64_t *off, uint64_t);
+int lfsr_next(struct fio_lfsr *fl, uint64_t *off);
int lfsr_init(struct fio_lfsr *fl, uint64_t size,
unsigned long seed, unsigned int spin);
int lfsr_reset(struct fio_lfsr *fl, unsigned long seed);