aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-12-28 11:22:35 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-01 00:10:43 +0000
commitd7c62d98c9f92f6be48562add1400f209b5bcac7 (patch)
treec0bc237cea5700d33f0a781c2044ef70fb9f9aa9 /sys/kern/vfs_cache.c
parent6fe7de1a250bb497ca1a3e1d979ae21c2149c2ea (diff)
downloadsrc-d7c62d98c9f92f6be48562add1400f209b5bcac7.tar.gz
src-d7c62d98c9f92f6be48562add1400f209b5bcac7.zip
cache: call cache_fplookup_modifying in neg
Tested by: pho
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 49fabc47884d..40cd174e1022 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -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)) {