parent
e6c797dcea
commit
149aa6be82
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: spec_vnops.c,v 1.216 2022/10/15 15:20:46 riastradh Exp $ */
|
||||
/* $NetBSD: spec_vnops.c,v 1.217 2023/04/22 14:30:16 hannken Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -58,7 +58,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.216 2022/10/15 15:20:46 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.217 2023/04/22 14:30:16 hannken Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_ddb.h"
|
||||
|
@ -397,7 +397,6 @@ spec_node_init(vnode_t *vp, dev_t rdev)
|
|||
}
|
||||
if (vp2 == NULL) {
|
||||
/* No existing record, create a new one. */
|
||||
sd->sd_rdev = rdev;
|
||||
sd->sd_mountpoint = NULL;
|
||||
sd->sd_lockf = NULL;
|
||||
sd->sd_refcnt = 1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: specdev.h,v 1.53 2022/10/26 23:40:08 riastradh Exp $ */
|
||||
/* $NetBSD: specdev.h,v 1.54 2023/04/22 14:30:16 hannken Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -77,7 +77,6 @@ typedef struct specdev {
|
|||
vnode_t *sd_bdevvp;
|
||||
u_int sd_opencnt; /* # of opens; close when ->0 */
|
||||
u_int sd_refcnt; /* # of specnodes referencing this */
|
||||
dev_t sd_rdev;
|
||||
volatile u_int sd_iocnt; /* # bdev/cdev_* operations active */
|
||||
bool sd_opened; /* true if successfully opened */
|
||||
bool sd_closing; /* true when bdev/cdev_close ongoing */
|
||||
|
|
Loading…
Reference in New Issue