mmap engine: don't invalidate cache on segment remap
authorJens Axboe <jens.axboe@oracle.com>
Tue, 2 Jun 2009 12:18:41 +0000 (14:18 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 2 Jun 2009 12:18:41 +0000 (14:18 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/mmap.c

index a5e0c6f..2a341d0 100644 (file)
@@ -46,9 +46,6 @@ static int fio_mmap_file(struct thread_data *td, struct fio_file *f,
                goto err;
        }
 
-       if (file_invalidate_cache(td, f))
-               goto err;
-
        if (!td_random(td)) {
                if (madvise(f->mmap_ptr, length, MADV_SEQUENTIAL) < 0) {
                        td_verror(td, errno, "madvise");