Arun Prakash Jana 2019-11-18 19:54:14 +05:30
parent 0ef9ec196e
commit 8705cb99a3
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 0 deletions

View File

@ -3512,6 +3512,8 @@ static int dentfill(char *path, struct entry **dents)
open_max = max_openfds();
}
posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL);
dp = readdir(dirp);
if (!dp)
goto exit;