diff options
author | phk <phk@FreeBSD.org> | 2005-02-19 11:44:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-19 11:44:57 +0000 |
commit | 66dfd6396149e353342cd31080e6b88469aec335 (patch) | |
tree | d9295850a39808606f8fe29612e510d2f3b4ef1a /sys/sys/bufobj.h | |
parent | 480b39e8f236038a1603ca2d67104be32bf2b696 (diff) | |
download | FreeBSD-src-66dfd6396149e353342cd31080e6b88469aec335.zip FreeBSD-src-66dfd6396149e353342cd31080e6b88469aec335.tar.gz |
Try to unbreak the vnode locking around vop_reclaim() (based mostly on
patch from kan@).
Pull bufobj_invalbuf() out of vinvalbuf() and make g_vfs call it on
close. This is not yet a generally safe function, but for this very
specific use it is safe. This solves the problem with buffers not
being flushed by unmount or after failed mount attempts.
Diffstat (limited to 'sys/sys/bufobj.h')
-rw-r--r-- | sys/sys/bufobj.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bufobj.h b/sys/sys/bufobj.h index 7b0243e..caad00f 100644 --- a/sys/sys/bufobj.h +++ b/sys/sys/bufobj.h @@ -125,6 +125,7 @@ struct bufobj { void bufobj_wdrop(struct bufobj *bo); void bufobj_wref(struct bufobj *bo); +int bufobj_invalbuf(struct bufobj *bo, int flags, struct thread *td, int slpflag, int slptimeo); int bufobj_wwait(struct bufobj *bo, int slpflag, int timeo); int bufsync(struct bufobj *bo, int waitfor, struct thread *td); |