]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: remove duplicated calls to io_kiocb_ppos
authorDylan Yudaken <dylany@fb.com>
Tue, 22 Feb 2022 10:55:01 +0000 (02:55 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Mar 2022 13:32:49 +0000 (06:32 -0700)
commitc7d22b61dc08106971870d6e4c15a9b812f8788e
tree5546672c31ff1acf5a94c1047f93fde15bc79bdd
parent989cb198e4bfe234d6b1d23c39358811cf699dc9
io_uring: remove duplicated calls to io_kiocb_ppos

io_kiocb_ppos is called in both branches, and it seems that the compiler
does not fuse this. Fusing removes a few bytes from loop_rw_iter.

Before:
$ nm -S fs/io_uring.o | grep loop_rw_iter
0000000000002430 0000000000000124 t loop_rw_iter

After:
$ nm -S fs/io_uring.o | grep loop_rw_iter
0000000000002430 000000000000010d t loop_rw_iter

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c