diff options
Diffstat (limited to 'src/liburing.h')
-rw-r--r-- | src/liburing.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/liburing.h b/src/liburing.h index 1cea6a5..5c8b01a 100644 --- a/src/liburing.h +++ b/src/liburing.h @@ -131,13 +131,12 @@ static inline void io_uring_prep_poll_remove(struct io_uring_sqe *sqe, } static inline void io_uring_prep_fsync(struct io_uring_sqe *sqe, int fd, - int datasync) + unsigned fsync_flags) { memset(sqe, 0, sizeof(*sqe)); sqe->opcode = IORING_OP_FSYNC; sqe->fd = fd; - if (datasync) - sqe->fsync_flags = IORING_FSYNC_DATASYNC; + sqe->fsync_flags = fsync_flags; } #endif |