mirror: Don't undo the MADV_SEQUENTIAL hinting over the course of a migration

This commit is contained in:
nick
2013-05-30 11:06:15 +01:00
parent 76cf2dc7b9
commit 055836c8cb

View File

@@ -198,9 +198,6 @@ int mirror_pass(struct server * serve, int is_last_pass, uint64_t *written)
0,
serve->mirror->mapped + current,
MS_REQUEST_LIMIT_SECS);
madvise( serve->mirror->mapped + current,
run,
MADV_DONTNEED );
/* now mark it clean */
bitset_clear_range(map, current, run);
@@ -219,10 +216,6 @@ int mirror_pass(struct server * serve, int is_last_pass, uint64_t *written)
}
}
if ( !success ) {
madvise( serve->mirror->mapped, serve->size, MADV_NORMAL );
}
return success;
}