From: Jens Axboe Date: Thu, 15 Mar 2007 13:11:10 +0000 (+0100) Subject: Style cleanup X-Git-Tag: fio-1.15~85 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=467d1b6b3ebbfcb7cc0545a882ba8a93ea66752b;ds=sidebyside Style cleanup Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index a51abc3c..5584a366 100644 --- a/filesetup.c +++ b/filesetup.c @@ -311,11 +311,11 @@ int file_invalidate_cache(struct thread_data *td, struct fio_file *f) */ if (f->mmap) ret = madvise(f->mmap, f->file_size, MADV_DONTNEED); - else if (f->filetype == FIO_TYPE_FILE) { + else if (f->filetype == FIO_TYPE_FILE) ret = fadvise(f->fd, f->file_offset, f->file_size, POSIX_FADV_DONTNEED); - } else if (f->filetype == FIO_TYPE_BD) { + else if (f->filetype == FIO_TYPE_BD) ret = blockdev_invalidate_cache(f->fd); - } else if (f->filetype == FIO_TYPE_CHAR) + else if (f->filetype == FIO_TYPE_CHAR) ret = 0; if (ret < 0) {