in nfs_flush(), only play games with B_NOCACHE for VREG vnodes.
if we do this for VBLK vnodes which are in use by softdep mounts, brelse() will mark the buffer B_INVAL as well, which makes the softdep code very unhappy.
This commit is contained in:
parent
a284236c04
commit
51c256aa5a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_vnops.c,v 1.122 2000/10/02 04:28:13 itojun Exp $ */
|
||||
/* $NetBSD: nfs_vnops.c,v 1.123 2000/11/08 05:20:32 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -2814,7 +2814,7 @@ loop:
|
|||
* the freelist.
|
||||
*/
|
||||
bremfree(bp);
|
||||
if (commit)
|
||||
if (commit && vp->v_type == VREG)
|
||||
/*
|
||||
* Setting B_NOCACHE has the effect
|
||||
* effect of nfs_doio using a stable write
|
||||
|
|
Loading…
Reference in New Issue