From b422aa11cc58e9786fa1e343aa2bfa6d7a394445 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 27 May 2019 14:57:04 -0600 Subject: test/fsync: use io_uring_sqe_set_flags() Signed-off-by: Jens Axboe --- test/fsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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) { -- cgit