summaryrefslogtreecommitdiffstats
path: root/sys/sys/buf.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-08 20:29:10 +0000
committerphk <phk@FreeBSD.org>2005-02-08 20:29:10 +0000
commitaf5ef3f262889299ffe39d2c97f6ef14b8a66b70 (patch)
tree9fcf46127f5e7e982c2869763b1e03ed0cc2c784 /sys/sys/buf.h
parentad1ee10f6d12f8bbdd826c263511342a4a45857a (diff)
downloadFreeBSD-src-af5ef3f262889299ffe39d2c97f6ef14b8a66b70.zip
FreeBSD-src-af5ef3f262889299ffe39d2c97f6ef14b8a66b70.tar.gz
Background writes are entirely an FFS/Softupdates thing.
Give FFS vnodes a specific bufwrite method which contains all the background write stuff and then calls into the default bufwrite() for the rest of the job. Remove all the background write related stuff from the normal bufwrite. This drags the softdep_move_dependencies() back into FFS. Long term, it is worth looking at simply copying the data into allocated memory and issuing the bio directly and not create the "shadow buf" in the first place (just like copy-on-write is done in snapshots for instance). I don't think we really gain anything but complexity from doing this with a buf.
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r--sys/sys/buf.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 25a9133..f80316c 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -64,7 +64,6 @@ extern struct bio_ops {
void (*io_start)(struct buf *);
void (*io_complete)(struct buf *);
void (*io_deallocate)(struct buf *);
- void (*io_movedeps)(struct buf *, struct buf *);
int (*io_countdeps)(struct buf *, int);
} bioops;
@@ -436,13 +435,6 @@ buf_deallocate(struct buf *bp)
BUF_LOCKFREE(bp);
}
-static __inline void
-buf_movedeps(struct buf *bp, struct buf *bp2)
-{
- if (bioops.io_movedeps)
- (*bioops.io_movedeps)(bp, bp2);
-}
-
static __inline int
buf_countdeps(struct buf *bp, int i)
{
OpenPOWER on IntegriCloud