diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 05f23840843b..2fb6ca6635d6 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_subs.c,v 1.111 2003/03/31 14:47:03 yamt Exp $ */ +/* $NetBSD: nfs_subs.c,v 1.112 2003/04/01 11:59:03 yamt Exp $ */ /* * Copyright (c) 1989, 1993 @@ -74,7 +74,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.111 2003/03/31 14:47:03 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.112 2003/04/01 11:59:03 yamt Exp $"); #include "fs_nfs.h" #include "opt_nfs.h" @@ -2479,6 +2479,8 @@ nfs_merge_commit_ranges(vp) { struct nfsnode *np = VTONFS(vp); + KASSERT(np->n_commitflags & NFS_COMMIT_PUSH_VALID); + if (!(np->n_commitflags & NFS_COMMIT_PUSHED_VALID)) { np->n_pushedlo = np->n_pushlo; np->n_pushedhi = np->n_pushhi;