aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index a267994..4a7f7e3 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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;