projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e9401c
)
mmap engine: don't invalidate cache on segment remap
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 2 Jun 2009 12:18:41 +0000
(14:18 +0200)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/engines/mmap.c
b/engines/mmap.c
index a5e0c6fc25646329336bd91f35759bcec6f3d709..2a341d076ec79a885a3668b174a3d264339ae027 100644
(file)
--- a/
engines/mmap.c
+++ b/
engines/mmap.c
@@
-46,9
+46,6
@@
static int fio_mmap_file(struct thread_data *td, struct fio_file *f,
goto err;
}
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");
if (!td_random(td)) {
if (madvise(f->mmap_ptr, length, MADV_SEQUENTIAL) < 0) {
td_verror(td, errno, "madvise");