Skip to content

Commit 6bf65a1

Browse files
isilenceaxboe
authored andcommitted
io_uring/rsrc: fix a comment in io_import_fixed()
io_import_fixed() supports offsets, but "may not" means the opposite. Replace it with "might not" so the comments rather speaks about possible cases. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de> Link: https://lore.kernel.org/r/5b5f79958456caa6dc532f6205f75f224b232c81.1676902343.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 8d66428 commit 6bf65a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/rsrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ int io_import_fixed(int ddir, struct iov_iter *iter,
13351335
return -EFAULT;
13361336

13371337
/*
1338-
* May not be a start of buffer, set size appropriately
1338+
* Might not be a start of buffer, set size appropriately
13391339
* and advance us to the beginning.
13401340
*/
13411341
offset = buf_addr - imu->ubuf;

0 commit comments

Comments
 (0)