Skip to content
Snippets Groups Projects
Commit 40d35c3d authored by Florian Fischer's avatar Florian Fischer
Browse files

make format

parent b0986c16
No related branches found
No related tags found
No related merge requests found
Pipeline #84121 passed
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Copyright © 2022 Florian Fischer // Copyright © 2022 Florian Fischer
#include <err.h> #include <err.h>
#include <fcntl.h> #include <fcntl.h>
#include <pthread.h>
#include <liburing.h> #include <liburing.h>
#include <pthread.h>
#include <cassert> #include <cassert>
#include <chrono> #include <chrono>
...@@ -52,7 +52,8 @@ static void thread_func(pthread_barrier_t& init_barrier, unsigned id, bool direc ...@@ -52,7 +52,8 @@ static void thread_func(pthread_barrier_t& init_barrier, unsigned id, bool direc
assert(sqe); assert(sqe);
if (direct) { if (direct) {
io_uring_prep_openat_direct(sqe, AT_FDCWD, p->c_str(), O_RDONLY, 0, i % URING_FILE_TABLE_SIZE); io_uring_prep_openat_direct(sqe, AT_FDCWD, p->c_str(), O_RDONLY, 0,
i % URING_FILE_TABLE_SIZE);
} else { } else {
io_uring_prep_openat(sqe, AT_FDCWD, p->c_str(), O_RDONLY, 0); io_uring_prep_openat(sqe, AT_FDCWD, p->c_str(), O_RDONLY, 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment