cache: flip inverted condition in previous

It happened to not affect correctness in that the fallback code would
simply neglect to promote the entry.
This commit is contained in:
Mateusz Guzik 2020-10-16 02:19:33 +00:00
parent e7602e04c7
commit a59b0ac3aa

View File

@ -1624,7 +1624,7 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
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;