aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/buf.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-10-26 10:44:10 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-10-26 10:44:10 +0000
commit6e77a04170db6c8a1a87918dd1baff938ac3dc98 (patch)
tree1dce54aab22f680923307ceb5fa06a88e65f184d /sys/sys/buf.h
parent58883a1fe5a06b036da9b2be9fe27cb36cbb2e8d (diff)
downloadsrc-6e77a04170db6c8a1a87918dd1baff938ac3dc98.tar.gz
src-6e77a04170db6c8a1a87918dd1baff938ac3dc98.zip
The island council met and voted buf_prewrite() home.
Give ffs it's own bufobj->bo_ops vector and create a private strategy routine, (currently misnamed for forwards compatibility), which is just a copy of the generic bufstrategy routine except we call softdep_disk_prewrite() directly instead of through the buf_prewrite() indirection. Teach UFS about the need for softdep_disk_prewrite() and call the function directly in FFS. Remove buf_prewrite() from the default bufstrategy() and from the global bio_ops method vector.
Notes
Notes: svn path=/head/; revision=136969
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r--sys/sys/buf.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 796fd70619d3..6accac628553 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -60,7 +60,6 @@ LIST_HEAD(workhead, worklist);
* to each buffer.
*/
extern struct bio_ops {
- int (*io_prewrite)(struct vnode *, struct buf *);
void (*io_start)(struct buf *);
void (*io_complete)(struct buf *);
void (*io_deallocate)(struct buf *);
@@ -416,15 +415,6 @@ bstrategy(struct buf *bp)
bp->b_bufobj->bo_ops->bop_strategy(bp->b_bufobj, bp);
}
-static __inline int
-buf_prewrite(struct vnode *vp, struct buf *bp)
-{
- if (bioops.io_prewrite)
- return (*bioops.io_prewrite)(vp, bp);
- else
- return (0);
-}
-
static __inline void
buf_start(struct buf *bp)
{