X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=315432dae468eeee8469f8944229b9fadaad98f5;hp=a1f8756d086ca5d06c5e1de063ec702f8294a228;hb=686fbd314c2113db5c9cd367a65f1e5abe47bce1;hpb=42c3f3daa815c6e792dfc817baabb4090554075a;ds=inline diff --git a/ioengines.c b/ioengines.c index a1f8756d..315432da 100644 --- a/ioengines.c +++ b/ioengines.c @@ -449,7 +449,7 @@ int td_io_open_file(struct thread_data *td, struct fio_file *f) goto err; if (td->o.fadvise_hint != F_ADV_NONE && - (f->filetype == FIO_TYPE_BD || f->filetype == FIO_TYPE_FILE)) { + (f->filetype == FIO_TYPE_BLOCK || f->filetype == FIO_TYPE_FILE)) { int flags; if (td->o.fadvise_hint == F_ADV_TYPE) { @@ -474,7 +474,7 @@ int td_io_open_file(struct thread_data *td, struct fio_file *f) } #ifdef FIO_HAVE_STREAMID if (td->o.fadvise_stream && - (f->filetype == FIO_TYPE_BD || f->filetype == FIO_TYPE_FILE)) { + (f->filetype == FIO_TYPE_BLOCK || f->filetype == FIO_TYPE_FILE)) { off_t stream = td->o.fadvise_stream; if (posix_fadvise(f->fd, stream, f->io_size, POSIX_FADV_STREAMID) < 0) {