mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
vmmeter(): Fix detection of the named swap objects
Noted and reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33549
This commit is contained in:
parent
4cf9f5d807
commit
0b8643eaf6
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ vmtotal(SYSCTL_HANDLER_ARGS)
|
|||
continue;
|
||||
}
|
||||
if (object->ref_count == 1 &&
|
||||
(object->flags & OBJ_ANON) == 0) {
|
||||
(object->flags & (OBJ_ANON | OBJ_SWAP)) == OBJ_SWAP) {
|
||||
/*
|
||||
* Also skip otherwise unreferenced swap
|
||||
* objects backing tmpfs vnodes, and POSIX or
|
||||
|
|
|
|||
Loading…
Reference in a new issue