projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Detect and print when the OS doesn't support huge pages
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index d79fc61081278c934fd1c4aecbfe344666c75811..93cddb1f467b3aea77cfc3b858c1164e89da8964 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-547,6
+547,7
@@
void add_file(struct thread_data *td, const char *fname)
void get_file(struct fio_file *f)
{
+ assert(f->flags & FIO_FILE_OPEN);
f->references++;
}