Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 2021 21:22:43 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3814bea00aed - main - cache: drop the now spurious doomed check when crossing a mount point
Message-ID:  <202101032122.103LMhZT054212@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

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

commit 3814bea00aed11007567c5ca075511c4f4217656
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-01-03 07:35:22 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-01-03 21:22:16 +0000

    cache: drop the now spurious doomed check when crossing a mount point
---
 sys/kern/vfs_cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 767b7136c580..1ad72630e1dc 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -4674,7 +4674,7 @@ cache_fplookup_climb_mount(struct cache_fpl *fpl)
 			return (cache_fpl_partial(fpl));
 		}
 		vp = atomic_load_ptr(&mp->mnt_rootvnode);
-		if (vp == NULL || VN_IS_DOOMED(vp)) {
+		if (vp == NULL) {
 			vfs_op_thread_exit_crit(mp, mpcpu);
 			return (cache_fpl_partial(fpl));
 		}
@@ -4725,7 +4725,7 @@ cache_fplookup_cross_mount(struct cache_fpl *fpl)
 		return (cache_fpl_partial(fpl));
 	}
 	vp = atomic_load_ptr(&mp->mnt_rootvnode);
-	if (__predict_false(vp == NULL || VN_IS_DOOMED(vp))) {
+	if (__predict_false(vp == NULL)) {
 		vfs_op_thread_exit_crit(mp, mpcpu);
 		return (cache_fpl_partial(fpl));
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101032122.103LMhZT054212>