Disable pre-fetching until we fix bug #3835.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30477 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-04-28 10:01:44 +00:00
parent aff0fbbe57
commit 996af6d997

View File

@ -2362,12 +2362,16 @@ _vm_map_file(team_id team, const char* name, void** _address,
cache->Unlock();
#if 0
// TODO: Fix ticket #3835 before enabling pre-fetching
// http://dev.haiku-os.org/ticket/3835
if (status == B_OK) {
// TODO: this probably deserves a smarter solution, ie. don't always
// prefetch stuff
cache_prefetch_vnode(vnode, offset, min_c(size, 10LL * 1024 * 1024));
// prefetches at max 10 MB starting from "offset"
}
#endif
if (status != B_OK)
return status;