Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2016 12:45:19 +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: r308360 - stable/11/sys/vm
Message-ID:  <201611061245.uA6CjJfw051174@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Nov  6 12:45:19 2016
New Revision: 308360
URL: https://svnweb.freebsd.org/changeset/base/308360

Log:
  MFC r308108:
  Split long line instead of unindenting it.  Add KASSERT() verifying
  that a device object with the same handle has the same ops vector.

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

Modified: stable/11/sys/vm/device_pager.c
==============================================================================
--- stable/11/sys/vm/device_pager.c	Sun Nov  6 05:57:44 2016	(r308359)
+++ stable/11/sys/vm/device_pager.c	Sun Nov  6 12:45:19 2016	(r308360)
@@ -169,7 +169,10 @@ cdev_pager_allocate(void *handle, enum o
 			if (pindex > object->size)
 				object->size = pindex;
 			KASSERT(object->type == tp,
-		    ("Inconsistent device pager type %p %d", object, tp));
+			    ("Inconsistent device pager type %p %d",
+			    object, tp));
+			KASSERT(object->un_pager.devp.ops == ops,
+			    ("Inconsistent devops %p %p", object, ops));
 		} else {
 			object = object1;
 			object1 = NULL;



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