diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-03-23 13:59:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-06-13 11:06:47 -0400 |
commit | 6719107e95a41b9ef241bdaa272eed505865710c (patch) | |
tree | 0d44c4640ef123ee8f74e051b6fe5c628d62de95 /src/ioq.c | |
parent | 9dca9f2bcd06f921312762e0b07254f5f8f51fc2 (diff) | |
download | bfs-6719107e95a41b9ef241bdaa272eed505865710c.tar.xz |
dir: New bfs_polldir() function for directory readahead
Diffstat (limited to 'src/ioq.c')
-rw-r--r-- | src/ioq.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |