Repository navigation
Commit d2988bd
Al Viro
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>1 parent 9061d14 commit d2988bd
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | 1200 | | |
1205 | 1201 | | |
1206 | 1202 | | |
1207 | 1203 | | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1208 | 1207 | | |
1209 | 1208 | | |
1210 | 1209 | | |
| |||
0 commit comments