X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-linux.h;h=6b63d123956afa6f28f20b3e7ff32e583f652e99;hb=b4b9665e89e2f6a25ca8e2b99207d95d4d7b5154;hp=a550bba6e1b3d785d554564258840874c93e8104;hpb=c479640d6208236744f0562b1e79535eec290e2b;p=fio.git 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;