cannot use fadv_random on linux -- too slow
This commit is contained in:
parent
ef67e917aa
commit
57775dd9f3
1 changed files with 0 additions and 3 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue