diff options
author | kib <kib@FreeBSD.org> | 2015-01-01 10:44:20 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-01-01 10:44:20 +0000 |
commit | a355201d21e09aeb2af52ffd0c14f90c6c9f338b (patch) | |
tree | a2f3efb3e775ec1f6c79f59d8d5d807106d8256b /sys/fs/tmpfs | |
parent | 366f16dd6a08d1eeca56a868ab58114d5d5d2069 (diff) | |
download | FreeBSD-src-a355201d21e09aeb2af52ffd0c14f90c6c9f338b.zip FreeBSD-src-a355201d21e09aeb2af52ffd0c14f90c6c9f338b.tar.gz |
MFC r275897:
Set NOCACHE flag for CREATE namei() calls, do not specially handle
MAKEENTRY in VOP_LOOKUP().
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 5ffab50..29ee389 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -195,7 +195,7 @@ tmpfs_lookup(struct vop_cachedlookup_args *v) /* Store the result of this lookup in the cache. Avoid this if the * request was for creation, as it does not improve timings on * emprical tests. */ - if ((cnp->cn_flags & MAKEENTRY) && cnp->cn_nameiop != CREATE) + if ((cnp->cn_flags & MAKEENTRY) != 0) cache_enter(dvp, *vpp, cnp); out: |