diff options
author | phk <phk@FreeBSD.org> | 1999-10-09 19:44:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-10-09 19:44:32 +0000 |
commit | 23477e965b1901f8d7197ec89a37918208102322 (patch) | |
tree | 8908bf225caea03519d30fa71f8bf35eec418fb1 /sys/sys/bio.h | |
parent | 6505efaabced23b6ad21af3e56f67920997d6b86 (diff) | |
download | FreeBSD-src-23477e965b1901f8d7197ec89a37918208102322.zip FreeBSD-src-23477e965b1901f8d7197ec89a37918208102322.tar.gz |
Give physio a makeover.
- Let physio take read/write compatible args and have it use uio->uio_rw
to determine the direction.
- physread/physwrite are now #defines for physio
- Remove the inversly named minphys(), dev->si_iosize_max takes over.
- Physio() always uses pbufs.
- Fix the check for non page-aligned transfers, now only unaligned
transfers larger than (MAXPHYS - PAGE_SIZE) get fragmented (only
interesting for tapes using max blocksize).
- General wash-and-clean of code.
Constructive input from: bde
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r-- | sys/sys/bio.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h index ae4dbfd..05e9863 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -480,11 +480,9 @@ int cluster_read __P((struct vnode *, u_quad_t, daddr_t, long, struct ucred *, long, int, struct buf **)); int cluster_wbuild __P((struct vnode *, long, daddr_t, int)); void cluster_write __P((struct buf *, u_quad_t)); -int physio __P((struct buf *, dev_t, int, u_int (*)(struct buf *), - struct uio *)); -int physread __P((dev_t dev, struct uio *uio, int ioflag)); -int physwrite __P((dev_t dev, struct uio *uio, int ioflag)); -u_int minphys __P((struct buf *)); +int physio __P((dev_t dev, struct uio *uio, int ioflag)); +#define physread physio +#define physwrite physio void vfs_bio_set_validclean __P((struct buf *, int base, int size)); void vfs_bio_clrbuf __P((struct buf *)); void vfs_busy_pages __P((struct buf *, int clear_modify)); |