X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/660f28b0186b76cc7eb6fd1363ed41062d718779..72d6a027d96b30c52d242ce162021efcecfe2bb9:/sys/sys/buf.h diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 21b69bb568..c09f235ed1 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -390,6 +390,7 @@ extern int bioq_reorder_minor_interval; extern int bioq_reorder_minor_bytes; struct uio; +struct devstat; void bufinit (void); int bd_heatup (void); @@ -398,6 +399,7 @@ void waitrunningbufspace(void); int buf_dirty_count_severe (void); int buf_runningbufspace_severe (void); void initbufbio(struct buf *); +void uninitbufbio(struct buf *); void reinitbufbio(struct buf *); void clearbiocache(struct bio *); void bremfree (struct buf *); @@ -420,7 +422,7 @@ struct buf *getpbuf_kva (int *); int inmem (struct vnode *, off_t); struct buf *findblk (struct vnode *, off_t, int); struct buf *getblk (struct vnode *, off_t, int, int, int); -struct buf *getcacheblk (struct vnode *, off_t); +struct buf *getcacheblk (struct vnode *, off_t, int); struct buf *geteblk (int); void unrefblk(struct buf *bp); void regetblk(struct buf *bp); @@ -456,9 +458,9 @@ struct buf *trypbuf_kva (int *); void bio_ops_sync(struct mount *mp); void vm_hold_free_pages(struct buf *bp, vm_offset_t from, vm_offset_t to); void vm_hold_load_pages(struct buf *bp, vm_offset_t from, vm_offset_t to); -void nestiobuf_done(struct bio *mbio, int donebytes, int error); +void nestiobuf_done(struct bio *mbio, int donebytes, int error, struct devstat *stats); void nestiobuf_init(struct bio *mbio); -void nestiobuf_add(struct bio *mbio, struct buf *bp, int off, size_t size); +void nestiobuf_add(struct bio *mbio, struct buf *bp, int off, size_t size, struct devstat *stats); void nestiobuf_start(struct bio *mbio); void nestiobuf_error(struct bio *mbio, int error); #endif /* _KERNEL */