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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to