io_uring: further deduplicate #CQ events calc
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:39 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commit888aae2eeddfe1d6c9731cf4af1a1b2605af6470
tree7c84ca6f2a36d368306468b280030e6aaff80165
parentec30e04ba4a5c265f52482092a5f5f5232947c48
io_uring: further deduplicate #CQ events calc

Apparently, there is one more place hand coded calculation of number of
CQ events in the ring. Use __io_cqring_events() helper in
io_get_cqring() as well. Naturally, assembly stays identical.

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