From 6719107e95a41b9ef241bdaa272eed505865710c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 23 Mar 2023 13:59:48 -0400 Subject: dir: New bfs_polldir() function for directory readahead --- src/ioq.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ioq.c') diff --git a/src/ioq.c b/src/ioq.c index 1b61fb0..74d2e09 100644 --- a/src/ioq.c +++ b/src/ioq.c @@ -158,6 +158,10 @@ static void *ioq_work(void *ptr) { res->ptr = req.ptr; res->dir = bfs_opendir(req.dfd, req.path); res->error = errno; + if (res->dir) { + bfs_polldir(res->dir); + } + ioqq_push(ioq->ready, cmd); } -- cgit v1.2.3