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:
parent
ff49530f45
commit
1cdb60485c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user