From: Jens Axboe Date: Thu, 28 Jul 2022 02:56:32 +0000 (-0600) Subject: Minor style fixups X-Git-Tag: test-tag-2022-08-09~9 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=48f8268e88629d408ffd09b1601ad13366bd4ce1;p=fio.git Minor style fixups Missing space for a comparison, and braces that aren't really needed. Fixes: acbda87c34c7 ("Fix multithread issues when operating on a single shared file") Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index 3a99850d..5159b60d 100644 --- a/backend.c +++ b/backend.c @@ -2321,7 +2321,7 @@ static void run_threads(struct sk_out *sk_out) * when setup_files() does not run into issues * later. */ - if (!i && td->o.nr_files==1) { + if (!i && td->o.nr_files == 1) { if (setup_shared_file(td)) { exit_value++; if (td->error) diff --git a/filesetup.c b/filesetup.c index b30a2932..e0592209 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1109,9 +1109,8 @@ int setup_shared_file(struct thread_data *td) dprint(FD_FILE, "fio: extending shared file\n"); f->real_file_size = file_size; err = extend_file(td, f); - if (!err) { + if (!err) err = __file_invalidate_cache(td, f, 0, f->real_file_size); - } get_file_sizes(td); dprint(FD_FILE, "shared setup new real_file_size=%llu\n", (unsigned long long)f->real_file_size);