Lines Matching refs:sync
27 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_sfr_prep() local
32 sync->off = READ_ONCE(sqe->off); in io_sfr_prep()
33 sync->len = READ_ONCE(sqe->len); in io_sfr_prep()
34 sync->flags = READ_ONCE(sqe->sync_range_flags); in io_sfr_prep()
42 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_sync_file_range() local
48 ret = sync_file_range(req->file, sync->off, sync->len, sync->flags); in io_sync_file_range()
55 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_fsync_prep() local
60 sync->flags = READ_ONCE(sqe->fsync_flags); in io_fsync_prep()
61 if (unlikely(sync->flags & ~IORING_FSYNC_DATASYNC)) in io_fsync_prep()
64 sync->off = READ_ONCE(sqe->off); in io_fsync_prep()
65 sync->len = READ_ONCE(sqe->len); in io_fsync_prep()
72 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_fsync() local
73 loff_t end = sync->off + sync->len; in io_fsync()
79 ret = vfs_fsync_range(req->file, sync->off, end > 0 ? end : LLONG_MAX, in io_fsync()
80 sync->flags & IORING_FSYNC_DATASYNC); in io_fsync()
87 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_fallocate_prep() local
92 sync->off = READ_ONCE(sqe->off); in io_fallocate_prep()
93 sync->len = READ_ONCE(sqe->addr); in io_fallocate_prep()
94 sync->mode = READ_ONCE(sqe->len); in io_fallocate_prep()
101 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_fallocate() local
107 ret = vfs_fallocate(req->file, sync->mode, sync->off, sync->len); in io_fallocate()