summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-05-27 14:57:04 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-27 14:57:04 -0600
commitb422aa11cc58e9786fa1e343aa2bfa6d7a394445 (patch)
tree1ce8541d6b5f3643b8beb69dbb6ea0dce76693ba /test
parentf3b78a78240e2cf8826291501f9ee3f2112e7dfe (diff)
test/fsync: use io_uring_sqe_set_flags()
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/fsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fsync.c b/test/fsync.c
index c9c2c5d..44264f4 100644
--- a/test/fsync.c
+++ b/test/fsync.c
@@ -93,7 +93,7 @@ static int test_barrier_fsync(struct io_uring *ring)
io_uring_prep_fsync(sqe, fd, IORING_FSYNC_DATASYNC);
sqe->user_data = 1;
- sqe->flags = IOSQE_IO_DRAIN;
+ io_uring_sqe_set_flags(sqe, IOSQE_IO_DRAIN);
ret = io_uring_submit(ring);
if (ret < 5) {