On 08.10.2021 14:47, Vlastimil Babka wrote:
On 10/8/21 11:24, Vasily Averin wrote:
__alloc_pages_bulk can call __count_zid_vm_events and zone_statistics
with nr_account = 0.
But that's not a bug, right? Just an effective no-op that's not commonly
happening, so is it worth the check?
Why not?
Yes, it's not a bug, it just makes the kernel a bit more efficient in a very unlikely case.
However, it looks strange and makes uninformed code reviewers like me worry about possible
problems inside the affected functions. No one else calls these functions from 0.