X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-freebsd.h;h=4a7cdeb7daaf2cef234c5a0c0ec551c7e72e4dad;hp=e6da286ea264f92fa2ed4e08d283c3bf0e4350c5;hb=496b1f9ee8b6e18991b2dce0bd20a6fd19d6dd2c;hpb=2905de747b0aba7f3a5c24026f6fcaa17c88de83 diff --git a/os/os-freebsd.h b/os/os-freebsd.h index e6da286e..4a7cdeb7 100644 --- a/os/os-freebsd.h +++ b/os/os-freebsd.h @@ -117,7 +117,7 @@ static inline unsigned long long get_fs_free_size(const char *path) return ret; } -static inline int os_trim(int fd, unsigned long long start, +static inline int os_trim(struct fio_file *f, unsigned long long start, unsigned long long len) { off_t range[2]; @@ -125,7 +125,7 @@ static inline int os_trim(int fd, unsigned long long start, range[0] = start; range[1] = len; - if (!ioctl(fd, DIOCGDELETE, range)) + if (!ioctl(f->fd, DIOCGDELETE, range)) return 0; return errno;