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