diff mbox series

[for-next,1/1] io_uring/rsrc: fix a comment in io_import_fixed()

Message ID 5b5f79958456caa6dc532f6205f75f224b232c81.1676902343.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [for-next,1/1] io_uring/rsrc: fix a comment in io_import_fixed() | expand

Commit Message

Pavel Begunkov Feb. 20, 2023, 2:13 p.m. UTC
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>
---
 io_uring/rsrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Gabriel Krisman Bertazi Feb. 20, 2023, 2:53 p.m. UTC | #1
Pavel Begunkov <asml.silence@gmail.com> writes:

> 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>
Jens Axboe Feb. 22, 2023, 4:53 p.m. UTC | #2
On Mon, 20 Feb 2023 14:13:52 +0000, Pavel Begunkov wrote:
> io_import_fixed() supports offsets, but "may not" means the opposite.
> Replace it with "might not" so the comments rather speaks about
> possible cases.
> 
> 

Applied, thanks!

[1/1] io_uring/rsrc: fix a comment in io_import_fixed()
      commit: 81da9e3accfcf978b87300629190d164228c8b8c

Best regards,
diff mbox series

Patch

diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c
index 70d7f94670f9..7a915a58eb38 100644
--- a/io_uring/rsrc.c
+++ b/io_uring/rsrc.c
@@ -1336,7 +1336,7 @@  int io_import_fixed(int ddir, struct iov_iter *iter,
 		return -EFAULT;
 
 	/*
-	 * May not be a start of buffer, set size appropriately
+	 * Might not be a start of buffer, set size appropriately
 	 * and advance us to the beginning.
 	 */
 	offset = buf_addr - imu->ubuf;