svn commit: r366744 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Fri Oct 16 02:19:34 UTC 2020


Author: mjg
Date: Fri Oct 16 02:19:33 2020
New Revision: 366744
URL: https://svnweb.freebsd.org/changeset/base/366744

Log:
  cache: flip inverted condition in previous
  
  It happened to not affect correctness in that the fallback code would
  simply neglect to promote the entry.

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c	Fri Oct 16 00:56:13 2020	(r366743)
+++ head/sys/kern/vfs_cache.c	Fri Oct 16 02:19:33 2020	(r366744)
@@ -1624,7 +1624,7 @@ negative_success:
 		vfs_smr_exit();
 		goto out_fallback;
 	}
-	if (neg_hot) {
+	if (!neg_hot) {
 		vfs_smr_exit();
 		if (!cache_negative_promote_cond(dvp, cnp, ncp, hash))
 			goto out_fallback;


More information about the svn-src-head mailing list