From: Tomohiro Kusumi Date: Mon, 20 Mar 2017 21:28:45 +0000 (+0200) Subject: Fix a comment after f227e2b6 X-Git-Tag: fio-2.19~19 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c6dfd837e0c0e46495d57d085dc78a66cf67dfdf;ds=sidebyside Fix a comment after f227e2b6 Add "for regular files" since it's true only on regfiles. Also see below. http://www.spinics.net/lists/fio/msg05646.html Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index c9f2b5ff..bcf95bd5 100644 --- a/filesetup.c +++ b/filesetup.c @@ -932,10 +932,11 @@ int setup_files(struct thread_data *td) } /* - * We normally don't come here, but if the result is 0, - * set it to the real file size. This could be size of - * the existing one if it already exists, but otherwise - * will be set to 0. A new file won't be created because + * We normally don't come here for regular files, but + * if the result is 0 for a regular file, set it to the + * real file size. This could be size of the existing + * one if it already exists, but otherwise will be set + * to 0. A new file won't be created because * ->io_size + ->file_offset equals ->real_file_size. */ if (!f->io_size) {