Original patch from Shaozhi Shawn Ye <yeshao@google.com>, modified
by me to continue the lookup and just skip the file instead of
returning NULL.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
flist_for_each(n, bucket) {
struct fio_file *f = flist_entry(n, struct fio_file, hash_list);
flist_for_each(n, bucket) {
struct fio_file *f = flist_entry(n, struct fio_file, hash_list);
+ if (!f->file_name)
+ continue;
+
if (!strcmp(f->file_name, name)) {
assert(f->fd != -1);
return f;
if (!strcmp(f->file_name, name)) {
assert(f->fd != -1);
return f;