]> git.baikalelectronics.ru Git - kernel.git/commit
aio_read_events_ring(): make a bit more readable
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 26 May 2018 23:13:10 +0000 (19:13 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 May 2018 03:18:17 +0000 (23:18 -0400)
commit2b77449fa6f3622e1510499fe2ad28d8ad2bf6e9
tree1a0df5ecf1d4c9400613e328e02d204ca01aa7a2
parent5af596232ddd0497fbd00249edfec173b18b5c63
aio_read_events_ring(): make a bit more readable

The logics for 'avail' is
* not past the tail of cyclic buffer
* no more than asked
* not past the end of buffer
* not past the end of a page

Unobfuscate the last part.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c