From 57775dd9f3e579d2a779a2ed4e851bbd72f1858a Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 27 Apr 2007 19:32:12 +0000 Subject: cannot use fadv_random on linux -- too slow --- src/cmd/venti/srv/part.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/cmd/venti/srv/part.c') 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){ -- cgit v1.2.3