diff options
author | rsc <devnull@localhost> | 2007-04-27 19:32:12 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-04-27 19:32:12 +0000 |
commit | 57775dd9f3e579d2a779a2ed4e851bbd72f1858a (patch) | |
tree | a5633e63181e9033371654f5563280f878d04870 /src | |
parent | ef67e917aa88e68862d086f0fe60b1f42529ac4e (diff) | |
download | plan9port-57775dd9f3e579d2a779a2ed4e851bbd72f1858a.tar.gz plan9port-57775dd9f3e579d2a779a2ed4e851bbd72f1858a.tar.bz2 plan9port-57775dd9f3e579d2a779a2ed4e851bbd72f1858a.zip |
cannot use fadv_random on linux -- too slow
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/venti/srv/part.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cmd/venti/srv/part.c b/src/cmd/venti/srv/part.c index 2be6a19f..59dd5492 100644 --- a/src/cmd/venti/srv/part.c +++ b/src/cmd/venti/srv/part.c @@ -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){ |