Commit bc787ab4 authored by Julius Plenz's avatar Julius Plenz

remove duplicate syscall

Still, there is some sort of racing condition I cannot reliably reproduce, but often enough observe. It looks like this: $ ./cachedel z && ./nocache cat z > /dev/null && ./cachestats -v z pages in cache: 2/16 (12.5%) [filesize=64.0K, pagesize=4K] cache map: 0: | | | | | | | | | | | | | | |x|x| Although of course the file should not be cached at all.
parent b88272e3
......@@ -6,8 +6,6 @@
int fadv_dontneed(int fd, off_t offset, off_t len)
{
if(posix_fadvise(fd, offset, len, POSIX_FADV_DONTNEED) == -1)
return -1;
return posix_fadvise(fd, offset, len, POSIX_FADV_DONTNEED);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment