mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
3733c51d38
* The altered used pages calculation of hrev43168 wasn't correct, as the inactive page queue may (validly) contain mapped pages as well. Those would then get counted twice (as they are included in gMappedPagesCount already). Instead we calculate the used pages from the total page count, minus everything we account for otherwise. Doing it this way is possible without introducing any additional counters, as all the counts to subtract are already present (as opposed to some of the ones that would be needed for adding the counts up). Fixes #8109. * Added TODO regarding the problem of not locking any of the counters which runs the risk of them getting modified while we haven't yet read all of them.