]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify the check for non-dumpable VM object types
authormarkj <markj@FreeBSD.org>
Fri, 2 Oct 2020 17:49:13 +0000 (17:49 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 2 Oct 2020 17:49:13 +0000 (17:49 +0000)
commit6f3e6e054cae25d733cbc55bc6172aba091a9da0
tree6898c9cfecdb464c6282b199e8b1a91356e6fa50
parent0e567ef65b64a71367e5e6ad9e8a8dfba659252a
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