svn commit: r366948 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Thu Oct 22 19:22:35 UTC 2020


Author: mjg
Date: Thu Oct 22 19:22:34 2020
New Revision: 366948
URL: https://svnweb.freebsd.org/changeset/base/366948

Log:
  cache: assert the created entry does not point to itself

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c	Thu Oct 22 19:19:42 2020	(r366947)
+++ head/sys/kern/vfs_cache.c	Thu Oct 22 19:22:34 2020	(r366948)
@@ -2104,6 +2104,7 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, 
 	int len;
 	u_long lnumcache;
 
+	VNPASS(dvp != vp, dvp);
 	VNPASS(!VN_IS_DOOMED(dvp), dvp);
 	VNPASS(dvp->v_type != VNON, dvp);
 	if (vp != NULL) {


More information about the svn-src-all mailing list