Commit 3af9805b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdr: do not turn off caching (refs #8446)

parent 3fd2e22d
......@@ -556,13 +556,11 @@ static void OptimizeForRead( int fd )
posix_fadvise( fd, 0, 4096, POSIX_FADV_WILLNEED );
posix_fadvise( fd, 0, 0, POSIX_FADV_NOREUSE );
#endif
#ifdef HAVE_FCNTL
#ifdef F_RDAHEAD
fcntl( fd, F_RDAHEAD, 1 );
#endif
#ifdef F_NOCACHE
fcntl( fd, F_NOCACHE, 1 );
#endif
fcntl( fd, F_NOCACHE, 0 );
#endif
}
......
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