summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-02-17 12:36:30 -0700
committerJens Axboe <axboe@kernel.dk>2021-02-17 12:36:30 -0700
commitfbe134e8285b97f1f9b705573af454b12d87e293 (patch)
treec7b461a57886fb81825bb68c225659edadee0f9f
parent245645c2ad3a74da4e2ab9df5cf308cfdd281112 (diff)
downloadliburing-fbe134e8285b97f1f9b705573af454b12d87e293.tar.gz
liburing-fbe134e8285b97f1f9b705573af454b12d87e293.tar.bz2
io_uring_prep_sync_file_range: cleanups
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 65dddf7..5b96e02 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -527,11 +527,12 @@ static inline void io_uring_prep_renameat(struct io_uring_sqe *sqe, int olddfd,
sqe->rename_flags = flags;
}
-static inline void io_uring_prep_sync_file_range(struct io_uring_sqe *sqe, int fd,
- unsigned len, off_t offset, int flags)
+static inline void io_uring_prep_sync_file_range(struct io_uring_sqe *sqe,
+ int fd, unsigned len,
+ off_t offset, int flags)
{
io_uring_prep_rw(IORING_OP_SYNC_FILE_RANGE, sqe, fd, NULL, len, offset);
- sqe->sync_range_flags = flags;
+ sqe->sync_range_flags = flags;
}
/*