diff options
| author | 2009-06-06 18:06:22 +0000 | |
|---|---|---|
| committer | 2009-06-06 18:06:22 +0000 | |
| commit | 785baf9ec4e85452140dd0b3ef252945b2aed0a1 (patch) | |
| tree | 145e7306fd2bbbe9786cb2f1c56a241d1bb201a7 /sys/kern/vfs_bio.c | |
| parent | - remove unused macro from iostat.c (diff) | |
| download | wireguard-openbsd-785baf9ec4e85452140dd0b3ef252945b2aed0a1.tar.xz wireguard-openbsd-785baf9ec4e85452140dd0b3ef252945b2aed0a1.zip | |
All caller of buf_acquire were doing bremfree before the call.
Just put it in the buf_acquire function.
oga@ ok
Diffstat (limited to 'sys/kern/vfs_bio.c')
| -rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 8e900669145..42435d9e05f 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.115 2009/06/05 04:29:14 beck Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.116 2009/06/06 18:06:22 art Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /* @@ -916,7 +916,6 @@ start: if (!ISSET(bp->b_flags, B_INVAL)) { bcstats.cachehits++; - bremfree(bp); SET(bp->b_flags, B_CACHE); buf_acquire(bp); splx(s); @@ -1101,7 +1100,6 @@ buf_daemon(struct proc *p) if (bcstats.numdirtypages < lodirtypages) break; - bremfree(bp); buf_acquire(bp); splx(s); |
