mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
When counting vm totals, skip unreferenced objects, including
vnodes representing mounted file systems. Reviewed by: alc MFC after: 3 days
This commit is contained in:
parent
d4593bb04f
commit
276096bb3e
1 changed files with 7 additions and 0 deletions
|
|
@ -212,6 +212,13 @@ vmtotal(SYSCTL_HANDLER_ARGS)
|
|||
*/
|
||||
continue;
|
||||
}
|
||||
if (object->ref_count == 0) {
|
||||
/*
|
||||
* Also skip unreferenced objects, including
|
||||
* vnodes representing mounted file systems.
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
totalp->t_vm += object->size;
|
||||
totalp->t_rm += object->resident_page_count;
|
||||
if (object->flags & OBJ_ACTIVE) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue