Change the calculation of the kinfo_vmentry field kve_private_resident

to reflect its name.

Noted and reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2014-07-15 19:49:00 +00:00
parent bae4e5af99
commit 3760e341ca

View File

@ -2182,7 +2182,7 @@ kern_proc_vmmap_out(struct proc *p, struct sbuf *sb)
VM_OBJECT_RLOCK(tobj);
lobj = tobj;
}
if (obj->shadow_count == 1)
if (obj->backing_object == NULL)
kve->kve_private_resident =
obj->resident_page_count;
if (vmmap_skip_res_cnt)