White space spring cleaning
[fio.git] / filesetup.c
index 9acce64a45fc91eecbce536b89c7dc015dc3a713..166ace8c529e02d0afa5cc91fb4ca66d6626cd21 100644 (file)
@@ -94,9 +94,9 @@ static int extend_file(struct thread_data *td, struct fio_file *f)
 
                        r = fallocate(f->fd, FALLOC_FL_KEEP_SIZE, 0,
                                        f->real_file_size);
-                       if (r != 0) {
+                       if (r != 0)
                                td_verror(td, errno, "fallocate");
-                       }
+
                        break;
 #endif /* FIO_HAVE_LINUX_FALLOCATE */
                default:
@@ -714,7 +714,7 @@ int setup_files(struct thread_data *td)
        need_extend = 0;
        for_each_file(td, f, i) {
                f->file_offset = td->o.start_offset +
-                       td->thread_number * td->o.offset_increment;
+                       (td->thread_number - 1) * td->o.offset_increment;
 
                if (!td->o.file_size_low) {
                        /*