diff options
| author | chs <chs@NetBSD.org> | 2002-03-23 05:00:57 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2002-03-23 05:00:57 +0000 |
| commit | 20a94bdf2d5cbb2de06572fc9fb7793ca4e82fd9 (patch) | |
| tree | eaf6ce0c92fd6035fdb8d5e401e1cd0957d05c02 | |
| parent | 60b5cc6ac29495d5ddee39349e2e87572fe195aa (diff) | |
only do v3 stuff for v3 filesystems.
| -rw-r--r-- | sys/nfs/nfs_bio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index 25f64563969..678d69aa117 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_bio.c,v 1.76 2002/03/16 23:05:25 chs Exp $ */ +/* $NetBSD: nfs_bio.c,v 1.77 2002/03/23 05:00:57 chs Exp $ */ /* * Copyright (c) 1989, 1993 @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.76 2002/03/16 23:05:25 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.77 2002/03/23 05:00:57 chs Exp $"); #include "opt_nfs.h" #include "opt_ddb.h" @@ -972,7 +972,7 @@ nfs_doio(bp, p) struct vm_page *pgs[npages]; boolean_t needcommit = TRUE; - if ((bp->b_flags & B_ASYNC) != 0) { + if ((bp->b_flags & B_ASYNC) != 0 && NFS_ISV3(vp)) { iomode = NFSV3WRITE_UNSTABLE; } else { iomode = NFSV3WRITE_FILESYNC; |
