diff options
author | mckusick <mckusick@FreeBSD.org> | 2000-01-10 00:08:53 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2000-01-10 00:08:53 +0000 |
commit | 2f9951ffbdc2dff074f16cd490f451ce751a7710 (patch) | |
tree | ab6b06989901b7c35e0e6abf0a8a6b0437dd34d9 /sys/kern/vfs_vnops.c | |
parent | a44e14097670c6ae3a2b4aa04f3af217928b2385 (diff) | |
download | FreeBSD-src-2f9951ffbdc2dff074f16cd490f451ce751a7710.zip FreeBSD-src-2f9951ffbdc2dff074f16cd490f451ce751a7710.tar.gz |
Add bwillwrite to all system calls that create things in the filesystem.
Benchmarks that create huge trees of empty files overwhelm the buffer cache.
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 7013308..edbf7b1 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -92,6 +92,7 @@ vn_open(ndp, fmode, cmode) ndp->ni_cnd.cn_flags = LOCKPARENT | LOCKLEAF; if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0) ndp->ni_cnd.cn_flags |= FOLLOW; + bwillwrite(); error = namei(ndp); if (error) return (error); |