diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c index d6d2fe72df8..8f3245b1511 100644 --- a/sys/vm/vm_meter.c +++ b/sys/vm/vm_meter.c @@ -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