summaryrefslogtreecommitdiffstats
path: root/sys/fs/nandfs/nandfs_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/nandfs/nandfs_vnops.c')
-rw-r--r--sys/fs/nandfs/nandfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nandfs/nandfs_vnops.c b/sys/fs/nandfs/nandfs_vnops.c
index 2c92f8b..65dcf64 100644
--- a/sys/fs/nandfs/nandfs_vnops.c
+++ b/sys/fs/nandfs/nandfs_vnops.c
@@ -478,7 +478,7 @@ out:
* the file might not be found and thus putting it into the namecache
* might be seen as negative caching.
*/
- if ((cnp->cn_flags & MAKEENTRY) && nameiop != CREATE)
+ if ((cnp->cn_flags & MAKEENTRY) != 0)
cache_enter(dvp, *vpp, cnp);
return (error);
OpenPOWER on IntegriCloud