summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-20 11:38:13 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-20 11:38:13 -0700
commit18d71076f6c97e1b25aa0e3b0e12a913ec4717fa (patch)
tree02cf1e7b0ca949c59a7628b742e3bde10a42649c /src
parentcce028f8ce0cc0669b7151bbf6b7b64bda042521 (diff)
downloadliburing-xattr-getdents64.tar.gz
liburing-xattr-getdents64.tar.bz2
src/include/liburing.h: style cleanupsxattr-getdents64
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r--src/include/liburing.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 178b16f..a36d3f6 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -687,7 +687,8 @@ static inline void io_uring_prep_mkdirat(struct io_uring_sqe *sqe, int dfd,
}
static inline void io_uring_prep_symlinkat(struct io_uring_sqe *sqe,
- const char *target, int newdirfd, const char *linkpath)
+ const char *target, int newdirfd,
+ const char *linkpath)
{
io_uring_prep_rw(IORING_OP_SYMLINKAT, sqe, newdirfd, target, 0,
(uint64_t) (uintptr_t) linkpath);
@@ -703,16 +704,15 @@ static inline void io_uring_prep_linkat(struct io_uring_sqe *sqe, int olddfd,
}
static inline void io_uring_prep_getdents(struct io_uring_sqe *sqe, int fd,
- void *buf, unsigned int count, uint64_t offset)
+ void *buf, unsigned int count,
+ uint64_t offset)
{
io_uring_prep_rw(IORING_OP_GETDENTS, sqe, fd, buf, count, offset);
}
static inline void io_uring_prep_getxattr(struct io_uring_sqe *sqe,
- const char *name,
- const char *value,
- const char *path,
- size_t len)
+ const char *name, const char *value,
+ const char *path, size_t len)
{
io_uring_prep_rw(IORING_OP_GETXATTR, sqe, 0, name, len,
(__u64) (uintptr_t) value);
@@ -721,10 +721,8 @@ static inline void io_uring_prep_getxattr(struct io_uring_sqe *sqe,
}
static inline void io_uring_prep_setxattr(struct io_uring_sqe *sqe,
- const char *name,
- const char *value,
- const char *path,
- int flags,
+ const char *name, const char *value,
+ const char *path, int flags,
size_t len)
{
io_uring_prep_rw(IORING_OP_SETXATTR, sqe, 0, name, len,
@@ -734,10 +732,8 @@ static inline void io_uring_prep_setxattr(struct io_uring_sqe *sqe,
}
static inline void io_uring_prep_fgetxattr(struct io_uring_sqe *sqe,
- int fd,
- const char *name,
- const char *value,
- size_t len)
+ int fd, const char *name,
+ const char *value, size_t len)
{
io_uring_prep_rw(IORING_OP_FGETXATTR, sqe, fd, name, len,
(__u64) (uintptr_t) value);
@@ -745,11 +741,9 @@ static inline void io_uring_prep_fgetxattr(struct io_uring_sqe *sqe,
}
static inline void io_uring_prep_fsetxattr(struct io_uring_sqe *sqe,
- int fd,
- const char *name,
- const char *value,
- int flags,
- size_t len)
+ int fd, const char *name,
+ const char *value, int flags,
+ size_t len)
{
io_uring_prep_rw(IORING_OP_FSETXATTR, sqe, fd, name, len,
(__u64) (uintptr_t) value);