Fix a problem that was caused by new (partial) support for merged cache

metadata and VBLK type devices.  The code is currently mostly disabled,
and a work-around has been added to disabled attempted clustered writes
for VBLK type device buffers.  Clustered write of meta-data is currently
a work in progress.
This commit is contained in:
dyson 1995-12-13 03:47:01 +00:00
parent 15a1e09c3d
commit c65edda09b

View File

@ -596,7 +596,11 @@ vfs_bio_awrite(struct buf * bp)
int nwritten;
s = splbio();
if (/* (vp->v_type != VBLK) && */
/*
* right now we support clustered writing only to regular files
*/
if ((vp->v_type == VREG) &&
(vp->v_mount != 0) && /* Only on nodes that have the size info */
(bp->b_flags & (B_CLUSTEROK | B_INVAL)) == B_CLUSTEROK) {
int size;
int maxcl;