diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2022-01-25 21:03:23 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-02-09 00:42:44 +0000 |
commit | c383935d00581bf52363b82ff2e6b275aad11d65 (patch) | |
tree | 75e07c5103ceeb44c790953c593daa0a257b99f3 | |
parent | 1617ca2c16a38482a40b44982e8c2bc4ab6c447c (diff) | |
download | src-c383935d00581bf52363b82ff2e6b275aad11d65.tar.gz src-c383935d00581bf52363b82ff2e6b275aad11d65.zip |
vmmeter(): Fix detection of the named swap objects
(cherry picked from commit 0b8643eaf6e787bac9c33c2ff03d5524cdfd7239)
-rw-r--r-- | sys/vm/vm_meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c index 15afd1f23649..31a23f975b0c 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 |