From 467d1b6b3ebbfcb7cc0545a882ba8a93ea66752b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 15 Mar 2007 14:11:10 +0100 Subject: [PATCH] Style cleanup Signed-off-by: Jens Axboe --- filesetup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.25.1