The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d7c62d98c9f92f6be48562add1400f209b5bcac7

commit d7c62d98c9f92f6be48562add1400f209b5bcac7
Author:     Mateusz Guzik <m...@freebsd.org>
AuthorDate: 2020-12-28 11:22:35 +0000
Commit:     Mateusz Guzik <m...@freebsd.org>
CommitDate: 2021-01-01 00:10:43 +0000

    cache: call cache_fplookup_modifying in neg
    
    Tested by:      pho
---
 sys/kern/vfs_cache.c | 8 ++------
 1 file 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)) {
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to