mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fadvise cleanup
This commit is contained in:
parent
e3e764ecae
commit
1a1fa06aa3
4 changed files with 46 additions and 4 deletions
|
|
@ -122,8 +122,8 @@ copydata(const int fdin,
|
|||
{
|
||||
int rv;
|
||||
|
||||
fs::fadvise(fdin,0,count,POSIX_FADV_WILLNEED);
|
||||
fs::fadvise(fdin,0,count,POSIX_FADV_SEQUENTIAL);
|
||||
fs::fadvise_willneed(fdin,0,count);
|
||||
fs::fadvise_sequential(fdin,0,count);
|
||||
|
||||
fs::fallocate(fdout,0,0,count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue