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 a5e0c6fc25646329336bd91f35759bcec6f3d709..2a341d076ec79a885a3668b174a3d264339ae027 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");