summaryrefslogtreecommitdiffstats
path: root/sys/sys/bufobj.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-19 11:44:57 +0000
committerphk <phk@FreeBSD.org>2005-02-19 11:44:57 +0000
commit66dfd6396149e353342cd31080e6b88469aec335 (patch)
treed9295850a39808606f8fe29612e510d2f3b4ef1a /sys/sys/bufobj.h
parent480b39e8f236038a1603ca2d67104be32bf2b696 (diff)
downloadFreeBSD-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.h1
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);
OpenPOWER on IntegriCloud