summaryrefslogtreecommitdiff
path: root/test/fsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fsync.c')
-rw-r--r--test/fsync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fsync.c b/test/fsync.c
index e6e0898..1a1890e 100644
--- a/test/fsync.c
+++ b/test/fsync.c
@@ -96,14 +96,14 @@ static int test_barrier_fsync(struct io_uring *ring)
io_uring_sqe_set_flags(sqe, IOSQE_IO_DRAIN);
ret = io_uring_submit(ring);
- if (ret < 5) {
- printf("Submitted only %d\n", ret);
- goto err;
- } else if (ret < 0) {
+ if (ret < 0) {
printf("sqe submit failed\n");
if (ret == EINVAL)
printf("kernel may not support barrier fsync yet\n");
goto err;
+ } else if (ret < 5) {
+ printf("Submitted only %d\n", ret);
+ goto err;
}
for (i = 0; i < 5; i++) {