Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Operation vfs_suspend() returns ENOENT if the mount...



details:   https://anonhg.NetBSD.org/src/rev/22848e08cbcd
branches:  trunk
changeset: 360006:22848e08cbcd
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Feb 08 08:57:11 2022 +0000

description:
Operation vfs_suspend() returns ENOENT if the mount is gone (IMNT_GONE).

Adjust the KASSERT() appropriately.

diffstat:

 sys/kern/vfs_vnode.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7d4b9bf790b8 -r 22848e08cbcd sys/kern/vfs_vnode.c
--- a/sys/kern/vfs_vnode.c      Mon Feb 07 23:24:26 2022 +0000
+++ b/sys/kern/vfs_vnode.c      Tue Feb 08 08:57:11 2022 +0000
@@ -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 @@
        if (error == 0)
                return thismp;
 
-       KASSERT(error == EOPNOTSUPP);
+       KASSERT(error == EOPNOTSUPP || error == ENOENT);
        return NULL;
 }
 



Home | Main Index | Thread Index | Old Index