From: Jens Axboe Date: Tue, 5 Jun 2018 19:15:27 +0000 (-0600) Subject: fallocate: use 'offset' parameter X-Git-Tag: fio-3.8~48 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e69dfc2bc3733a844a72743e03db885b27fa8b58 fallocate: use 'offset' parameter Signed-off-by: Jens Axboe --- diff --git a/os/os-linux.h b/os/os-linux.h index a550bba6..6b63d123 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -403,7 +403,7 @@ static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len) { int ret; - ret = fallocate(f->fd, 0, 0, len); + ret = fallocate(f->fd, 0, offset, len); if (ret == 0) return true;