Noted by: alc

Reviewed by:	alc, markj (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	6 days
This commit is contained in:
kib 2019-05-06 08:46:11 +00:00
parent f60e7d9600
commit 9d98ef7bc1

View File

@ -1726,9 +1726,8 @@ vm_object_collapse(vm_object_t object)
VM_OBJECT_WLOCK(backing_object);
if (backing_object->handle != NULL ||
(backing_object->type != OBJT_DEFAULT &&
(backing_object->type != OBJT_SWAP ||
(backing_object->flags & OBJ_NOSPLIT) != 0)) ||
(backing_object->flags & OBJ_DEAD) ||
backing_object->type != OBJT_SWAP) ||
(backing_object->flags & (OBJ_DEAD | OBJ_NOSPLIT)) != 0 ||
object->handle != NULL ||
(object->type != OBJT_DEFAULT &&
object->type != OBJT_SWAP) ||