summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-26 10:01:58 -0700
committerJens Axboe <axboe@kernel.dk>2019-12-26 10:01:58 -0700
commit2a555e56b01dc4731a43841624e94f6c095c04f2 (patch)
treef9319a1bd1ca95e20842abd8bf00e6ec326f7b80
parenta1da8854c4f2bb6ce738f9c0aaedabb04e853e2b (diff)
downloadliburing-2a555e56b01dc4731a43841624e94f6c095c04f2.tar.gz
liburing-2a555e56b01dc4731a43841624e94f6c095c04f2.tar.bz2
io_uring_prep_files_update() should take offset as well
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index b2a75e6..2403ba4 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -293,9 +293,10 @@ static inline void io_uring_prep_connect(struct io_uring_sqe *sqe, int fd,
}
static inline void io_uring_prep_files_update(struct io_uring_sqe *sqe,
- int *fds, unsigned nr_fds)
+ int *fds, unsigned nr_fds,
+ int offset)
{
- io_uring_prep_rw(IORING_OP_FILES_UPDATE, sqe, -1, fds, nr_fds, 0);
+ io_uring_prep_rw(IORING_OP_FILES_UPDATE, sqe, -1, fds, nr_fds, offset);
}
static inline void io_uring_prep_fallocate(struct io_uring_sqe *sqe, int fd,