From 6bb39cdd07a64b36351ef4f65ad8dd00c36cae90 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Dec 2024 13:30:06 +0100 Subject: [PATCH] Walk: open the DirectoryReader with io_uring --- src/Walk.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Walk.cxx b/src/Walk.cxx index 08974c5..fb51882 100644 --- a/src/Walk.cxx +++ b/src/Walk.cxx @@ -159,7 +159,7 @@ try { *new WalkDirectory(uring, parent, co_await Uring::CoOpen(uring, parent.fd, name.c_str(), O_PATH|O_DIRECTORY, 0)), }; - ScanDirectory(*directory, OpenDirectory(directory->fd, ".")); + ScanDirectory(*directory, co_await Uring::CoOpen(uring, directory->fd, ".", O_DIRECTORY, 0)); } catch (...) { fmt::print(stderr, "Failed to scan directory: {}\n", std::current_exception()); }