The branch main has been updated by mjg:

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

commit 2171b8e8a263fa92b043d9ef53c10ba7941c3001
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2021-01-20 07:23:14 +0000
Commit:     Mateusz Guzik <[email protected]>
CommitDate: 2021-01-20 07:23:14 +0000

    cache: augment sdt probe in cache_fplookup_dot
    
    Same as 6d386b4c ("cache: save a branch in cache_fplookup_next")
---
 sys/kern/vfs_cache.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 5a1ebffece05..cfa25dc59ee4 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -4578,16 +4578,15 @@ cache_fplookup_dot(struct cache_fpl *fpl)
         */
        fpl->tvp = fpl->dvp;
        fpl->tvp_seqc = fpl->dvp_seqc;
-       if (cache_fplookup_is_mp(fpl)) {
-               error = cache_fplookup_cross_mount(fpl);
-               if (__predict_false(error != 0)) {
-                       return (error);
-               }
-       }
 
        counter_u64_add(dothits, 1);
        SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp);
-       return (0);
+
+       error = 0;
+       if (cache_fplookup_is_mp(fpl)) {
+               error = cache_fplookup_cross_mount(fpl);
+       }
+       return (error);
 }
 
 static int __noinline
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to