git: b30e7cb7fa9c - main - cache: add OPENREAD and OPENWRITE to fast path lookup

Mateusz Guzik mjg at FreeBSD.org
Sat Aug 7 11:06:29 UTC 2021


The branch main has been updated by mjg:

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

commit b30e7cb7fa9c521bda8fa7eeeb95205543827539
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-07 11:02:38 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-07 11:02:38 +0000

    cache: add OPENREAD and OPENWRITE to fast path lookup
---
 sys/kern/vfs_cache.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 09f926d0cd31..199da865e39c 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -4175,7 +4175,8 @@ cache_fpl_terminated(struct cache_fpl *fpl)
 #define CACHE_FPL_SUPPORTED_CN_FLAGS \
 	(NC_NOMAKEENTRY | NC_KEEPPOSENTRY | LOCKLEAF | LOCKPARENT | WANTPARENT | \
 	 FAILIFEXISTS | FOLLOW | LOCKSHARED | SAVENAME | SAVESTART | WILLBEDIR | \
-	 ISOPEN | NOMACCHECK | AUDITVNODE1 | AUDITVNODE2 | NOCAPCHECK)
+	 ISOPEN | NOMACCHECK | AUDITVNODE1 | AUDITVNODE2 | NOCAPCHECK | OPENREAD | \
+	 OPENWRITE)
 
 #define CACHE_FPL_INTERNAL_CN_FLAGS \
 	(ISDOTDOT | MAKEENTRY | ISLASTCN)


More information about the dev-commits-src-main mailing list