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 ef9f28e4
-
mentioned in commit 0686f450
-
mentioned in commit ff3c3ecd
-
mentioned in commit 69dc6806
-
mentioned in commit f51b5376
-
mentioned in commit 9c978414
-
mentioned in commit 0926f1f0
-
mentioned in commit 8ef74aeb
-
mentioned in commit 46cd8878
-
mentioned in commit c7e0a6d8
-
mentioned in commit 403642c0
-
mentioned in commit fb0cece7
-
mentioned in commit fb0cece7
-
mentioned in commit 41906fef
-
mentioned in commit 9b9e6a7b
-
mentioned in commit 85bff670
-
mentioned in commit fd128a62
-
mentioned in commit 9cd655bd
-
mentioned in commit b28a5779
-
mentioned in commit b28a5779
Please sign in to comment