cannot use fadv_random on linux -- too slow

This commit is contained in:
rsc 2007-04-27 19:32:12 +00:00
parent ef67e917aa
commit 57775dd9f3

View file

@ -123,9 +123,6 @@ initpart(char *name, int mode)
}
fprint(2, "warning: %s opened for reading only\n", name);
}
#ifdef __linux__ /* sorry again! still linus's fault! */
posix_fadvise(part->fd, 0, 0, POSIX_FADV_RANDOM); /* disable readahead */
#endif
part->offset = lo;
dir = dirfstat(part->fd);
if(dir == nil){