]> git.baikalelectronics.ru Git - kernel.git/commit
fs: optimise kiocb_set_rw_flags()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 1 Aug 2020 10:36:33 +0000 (13:36 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Aug 2020 17:02:00 +0000 (11:02 -0600)
commitd1f8d71c9de924b8eb20043d59994c3db5564e88
tree8aba110d49827532706a9646c45557e70a07243a
parentdc22245d7015339df3a17eb7dc3674f587903794
fs: optimise kiocb_set_rw_flags()

Use a local var to collect flags in kiocb_set_rw_flags(). That spares
some memory writes and allows to replace most of the jumps with MOVEcc.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h