Set IMNT_MPSAFE only if the lower layer has it set.

This commit is contained in:
hannken 2023-02-06 10:32:58 +00:00
parent 932cf2b587
commit 6017299f5f
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: null_vfsops.c,v 1.100 2022/11/04 11:20:39 hannken Exp $ */ /* $NetBSD: null_vfsops.c,v 1.101 2023/02/06 10:32:58 hannken Exp $ */
/* /*
* Copyright (c) 1999 National Aeronautics & Space Administration * Copyright (c) 1999 National Aeronautics & Space Administration
@ -76,7 +76,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.100 2022/11/04 11:20:39 hannken Exp $"); __KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.101 2023/02/06 10:32:58 hannken Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -138,7 +138,7 @@ nullfs_mount(struct mount *mp, const char *path, void *data, size_t *data_len)
/* Create the mount point. */ /* Create the mount point. */
nmp = kmem_zalloc(sizeof(struct null_mount), KM_SLEEP); nmp = kmem_zalloc(sizeof(struct null_mount), KM_SLEEP);
mp->mnt_data = nmp; mp->mnt_data = nmp;
mp->mnt_iflag |= IMNT_MPSAFE; mp->mnt_iflag |= lowerrootvp->v_mount->mnt_iflag & IMNT_MPSAFE;
mp->mnt_iflag |= lowerrootvp->v_mount->mnt_iflag & IMNT_SHRLOOKUP; mp->mnt_iflag |= lowerrootvp->v_mount->mnt_iflag & IMNT_SHRLOOKUP;
/* /*