io_uring: io_kiocb_update_pos() should not touch file for non -1 offset
commit 6f83ab22 upstream. -1 tells use to use the current position, but we check if the file is a stream regardless of that. Fix up io_kiocb_update_pos() to only dip into file if we need to. This is both more efficient and also drops 12 bytes of text on aarch64 and 64 bytes on x86-64. Fixes: b4aec400 ("io_uring: do not recalculate ppos unnecessarily") Signed-off-by:Jens Axboe <axboe@kernel.dk> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
-
mentioned in commit 1822586c
-
mentioned in commit c1953810
-
mentioned in commit b1ee5ea4
-
mentioned in commit f436491d
-
mentioned in commit 303b40f5
-
mentioned in commit 73f8066e
-
mentioned in commit ec4363ab
-
mentioned in commit 3a4f67f9
-
mentioned in commit 51556245
-
mentioned in commit 51556245
Please sign in to comment