Module Name: src Committed By: hannken Date: Tue Feb 8 08:57:11 UTC 2022
Modified Files: src/sys/kern: vfs_vnode.c Log Message: Operation vfs_suspend() returns ENOENT if the mount is gone (IMNT_GONE). Adjust the KASSERT() appropriately. To generate a diff of this commit: cvs rdiff -u -r1.128 -r1.129 src/sys/kern/vfs_vnode.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_vnode.c diff -u src/sys/kern/vfs_vnode.c:1.128 src/sys/kern/vfs_vnode.c:1.129 --- src/sys/kern/vfs_vnode.c:1.128 Wed Oct 20 03:08:18 2021 +++ src/sys/kern/vfs_vnode.c Tue Feb 8 08:57:11 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_vnode.c,v 1.128 2021/10/20 03:08:18 thorpej Exp $ */ +/* $NetBSD: vfs_vnode.c,v 1.129 2022/02/08 08:57:11 hannken Exp $ */ /*- * Copyright (c) 1997-2011, 2019, 2020 The NetBSD Foundation, Inc. @@ -148,7 +148,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.128 2021/10/20 03:08:18 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.129 2022/02/08 08:57:11 hannken Exp $"); #ifdef _KERNEL_OPT #include "opt_pax.h" @@ -1117,7 +1117,7 @@ vrevoke_suspend_next(struct mount *lastm if (error == 0) return thismp; - KASSERT(error == EOPNOTSUPP); + KASSERT(error == EOPNOTSUPP || error == ENOENT); return NULL; }