projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename FIO_TYPE_BD to FIO_TYPE_BLOCK
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index a1f8756d086ca5d06c5e1de063ec702f8294a228..315432dae468eeee8469f8944229b9fadaad98f5 100644
(file)
--- 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 &&
goto err;
if (td->o.fadvise_hint != F_ADV_NONE &&
- (f->filetype == FIO_TYPE_B
D
|| f->filetype == FIO_TYPE_FILE)) {
+ (f->filetype == FIO_TYPE_B
LOCK
|| f->filetype == FIO_TYPE_FILE)) {
int flags;
if (td->o.fadvise_hint == F_ADV_TYPE) {
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 &&
}
#ifdef FIO_HAVE_STREAMID
if (td->o.fadvise_stream &&
- (f->filetype == FIO_TYPE_B
D
|| f->filetype == FIO_TYPE_FILE)) {
+ (f->filetype == FIO_TYPE_B
LOCK
|| 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) {
off_t stream = td->o.fadvise_stream;
if (posix_fadvise(f->fd, stream, f->io_size, POSIX_FADV_STREAMID) < 0) {