diff options
author | phk <phk@FreeBSD.org> | 2001-04-17 08:56:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-04-17 08:56:39 +0000 |
commit | 378e561228360a3c0ad7f34be404abec95457c90 (patch) | |
tree | c2dc888d5361454aab94e341449bda307b726c8b /sys/kern/vfs_export.c | |
parent | 922e3083ccc90b69264f72c32d897dfa6c0c2495 (diff) | |
download | FreeBSD-src-378e561228360a3c0ad7f34be404abec95457c90.zip FreeBSD-src-378e561228360a3c0ad7f34be404abec95457c90.tar.gz |
This patch removes the VOP_BWRITE() vector.
VOP_BWRITE() was a hack which made it possible for NFS client
side to use struct buf with non-bio backing.
This patch takes a more general approach and adds a bp->b_op
vector where more methods can be added.
The success of this patch depends on bp->b_op being initialized
all relevant places for some value of "relevant" which is not
easy to determine. For now the buffers have grown a b_magic
element which will make such issues a tiny bit easier to debug.
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index f10edb2..29dec8a 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -748,7 +748,7 @@ vinvalbuf(vp, flags, cred, p, slpflag, slptimeo) * believe there is a slight chance that a delayed * write will occur while sleeping just above, so * check for it. Note that vfs_bio_awrite expects - * buffers to reside on a queue, while VOP_BWRITE and + * buffers to reside on a queue, while BUF_WRITE and * brelse do not. */ if (((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI) && |