projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filehash: fix init/exit
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 317d738042c1b988fa243535c39dfc6e71d8d260..a3bbbb24dbb2bce44fac7dba270acfde5f30ede6 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-1319,7
+1319,6
@@
static struct fio_file *alloc_new_file(struct thread_data *td)
f = smalloc(sizeof(*f));
if (!f) {
f = smalloc(sizeof(*f));
if (!f) {
- log_err("fio: smalloc OOM\n");
assert(0);
return NULL;
}
assert(0);
return NULL;
}
@@
-1402,10
+1401,8
@@
int add_file(struct thread_data *td, const char *fname, int numjob, int inc)
f->real_file_size = -1ULL;
f->file_name = smalloc_strdup(file_name);
f->real_file_size = -1ULL;
f->file_name = smalloc_strdup(file_name);
- if (!f->file_name) {
- log_err("fio: smalloc OOM\n");
+ if (!f->file_name)
assert(0);
assert(0);
- }
get_file_type(f);
get_file_type(f);
@@
-1608,10
+1605,8
@@
void dup_files(struct thread_data *td, struct thread_data *org)
if (f->file_name) {
__f->file_name = smalloc_strdup(f->file_name);
if (f->file_name) {
__f->file_name = smalloc_strdup(f->file_name);
- if (!__f->file_name) {
- log_err("fio: smalloc OOM\n");
+ if (!__f->file_name)
assert(0);
assert(0);
- }
__f->filetype = f->filetype;
}
__f->filetype = f->filetype;
}