summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-05-30 07:01:18 +0000
committerjeff <jeff@FreeBSD.org>2005-05-30 07:01:18 +0000
commit33b78c31e9736f90432e77668b42d6bea93f0469 (patch)
tree9acb4b97fa3e4fe401bc34b91be3ada3d667da37 /sys/kern
parent920510430d71b6a6df9636214856d8bdaf388005 (diff)
downloadFreeBSD-src-33b78c31e9736f90432e77668b42d6bea93f0469.zip
FreeBSD-src-33b78c31e9736f90432e77668b42d6bea93f0469.tar.gz
- Add bufobj_wrefl() to add a write ref to a bufobj that is already locked.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_bio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index d64133e..8c6a6b9 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3667,6 +3667,15 @@ bufstrategy(struct bufobj *bo, struct buf *bp)
}
void
+bufobj_wrefl(struct bufobj *bo)
+{
+
+ KASSERT(bo != NULL, ("NULL bo in bufobj_wref"));
+ ASSERT_BO_LOCKED(bo);
+ bo->bo_numoutput++;
+}
+
+void
bufobj_wref(struct bufobj *bo)
{
OpenPOWER on IntegriCloud