mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
fadvise cleanup
This commit is contained in:
parent
e3e764ecae
commit
1a1fa06aa3
4 changed files with 46 additions and 4 deletions
|
|
@ -33,8 +33,8 @@ _release(FileInfo *fi,
|
|||
// https://github.com/Feh/nocache
|
||||
if(dropcacheonclose)
|
||||
{
|
||||
fs::fadvise(fi->fd,0,0,POSIX_FADV_DONTNEED);
|
||||
fs::fadvise(fi->fd,0,0,POSIX_FADV_DONTNEED);
|
||||
fs::fadvise_dontneed(fi->fd);
|
||||
fs::fadvise_dontneed(fi->fd);
|
||||
}
|
||||
|
||||
fs::close(fi->fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue