cache: call cache_fplookup_modifying in neg

Tested by:	pho
This commit is contained in:
Mateusz Guzik 2020-12-28 11:22:35 +00:00
parent 6fe7de1a25
commit d7c62d98c9

View File

@ -4501,12 +4501,8 @@ cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash)
* If they want to create an entry we need to replace this one.
*/
if (__predict_false(fpl->cnp->cn_nameiop != LOOKUP)) {
/*
* TODO
* This should call something similar to
* cache_fplookup_final_modifying.
*/
return (cache_fpl_partial(fpl));
fpl->tvp = NULL;
return (cache_fplookup_modifying(fpl));
}
neg_promote = cache_neg_hit_prep(ncp);
if (!cache_ncp_canuse(ncp)) {