]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify the check for non-dumpable VM object types
authorMark Johnston <markj@FreeBSD.org>
Fri, 2 Oct 2020 17:49:13 +0000 (17:49 +0000)
committerMark Johnston <markj@FreeBSD.org>
Fri, 2 Oct 2020 17:49:13 +0000 (17:49 +0000)
commitfec41f0751be736a70d5231006ebde3c1240dc12
tree6898c9cfecdb464c6282b199e8b1a91356e6fa50
parent3f59a7f97bfa96327a83c9349db2545093534d8c
Simplify the check for non-dumpable VM object types

OBJT_DEFAULT, _SWAP, _VNODE and _PHYS is exactly the set of
non-fictitious object types, so just check for OBJ_FICTITIOUS.  The
check no longer excludes dead objects, but such objects have to be
handled regardless.

No functional change intended.

Reviewed by: alc, dougm, kib
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26589
sys/kern/imgact_elf.c