aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-08-07 11:02:38 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-08-07 11:02:38 +0000
commitb30e7cb7fa9c521bda8fa7eeeb95205543827539 (patch)
treedca65346288a36b7ac6a9f0e51ef08e1a62a6a55
parent0b79b007ebfc250a8a7b928df268ada6f1c988c4 (diff)
downloadsrc-b30e7cb7fa9c521bda8fa7eeeb95205543827539.tar.gz
src-b30e7cb7fa9c521bda8fa7eeeb95205543827539.zip
cache: add OPENREAD and OPENWRITE to fast path lookup
-rw-r--r--sys/kern/vfs_cache.c3
1 files changed, 2 insertions, 1 deletions
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)