mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00: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
|
@ -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