Botch edit in files setup
authorJens Axboe <jens.axboe@oracle.com>
Wed, 4 Mar 2009 14:37:52 +0000 (15:37 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 4 Mar 2009 14:37:52 +0000 (15:37 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index 461f130..9862c7d 100644 (file)
@@ -720,9 +720,9 @@ int add_file(struct thread_data *td, const char *fname)
                dprint(FD_FILE, "resize file array to %d files\n", new_size);
 
                td->files = realloc(td->files, new_size * sizeof(f));
-               td->files[cur_files] = f;
                td->files_size = new_size;
        }
+       td->files[cur_files] = f;
 
        /*
         * init function, io engine may not be loaded yet