Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2019 07:55:26 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347509 - stable/11/sys/vm
Message-ID:  <201905120755.x4C7tQ4u036486@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun May 12 07:55:25 2019
New Revision: 347509
URL: https://svnweb.freebsd.org/changeset/base/347509

Log:
  MFC r347150, r347180:
  Do not collapse objects with OBJ_NOSPLIT backing swap or default object.

Modified:
  stable/11/sys/vm/vm_object.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_object.c
==============================================================================
--- stable/11/sys/vm/vm_object.c	Sun May 12 07:53:24 2019	(r347508)
+++ stable/11/sys/vm/vm_object.c	Sun May 12 07:55:25 2019	(r347509)
@@ -1777,8 +1777,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_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) ||



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905120755.x4C7tQ4u036486>