aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorDylan Yudaken <[email protected]>2022-02-22 02:55:03 -0800
committerJens Axboe <[email protected]>2022-03-10 06:32:49 -0700
commitb4aec40015953b65f2f114641e7fd7714c8df8e6 (patch)
treea8d536ef9a42db0804c9d0df40e5aa3e649d3f6f /include/linux/overflow.h
parentd34e1e5b396a0dbaa4a29b7138df662cfb9d8e8e (diff)
io_uring: do not recalculate ppos unnecessarily
There is a slight optimisation to be had by calculating the correct pos pointer inside io_kiocb_update_pos and then using that later. It seems code size drops by a bit: 000000000000a1b0 0000000000000400 t io_read 000000000000a5b0 0000000000000319 t io_write vs 000000000000a1b0 00000000000003f6 t io_read 000000000000a5b0 0000000000000310 t io_write Signed-off-by: Dylan Yudaken <[email protected]> Reviewed-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions