diff options
author | julian <julian@FreeBSD.org> | 1996-09-11 07:52:18 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1996-09-11 07:52:18 +0000 |
commit | c60a92f8855ee0dcbdb4f4cb2fd0fb607746ed8b (patch) | |
tree | b0033ea9f615add9027e1a0a5f9faf175ba1cf26 /sys/miscfs/devfs | |
parent | 457abb0654769e5447910628ea81baaec32a9ce5 (diff) | |
download | FreeBSD-src-c60a92f8855ee0dcbdb4f4cb2fd0fb607746ed8b.zip FreeBSD-src-c60a92f8855ee0dcbdb4f4cb2fd0fb607746ed8b.tar.gz |
fix the ability of the VFS to reclaim devfs nodes correctly..
(was resulting in panics, especially when DIAGNOSTIC was set.)
Diffstat (limited to 'sys/miscfs/devfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index d84b374..783078b 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -1,7 +1,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.24 1996/09/03 14:22:02 bde Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.25 1996/09/10 08:27:39 bde Exp $ * * symlinks can wait 'til later. */ @@ -1545,6 +1545,7 @@ DBPRINT(("reclaim\n")); return error; } + ap->a_vp->v_data = NULL; file_node->vn = 0; file_node->vn_id = 0; return(0); @@ -1816,7 +1817,7 @@ static struct vnodeopv_entry_desc dev_spec_vnodeop_entries[] = { { &vop_readlink_desc, (vop_t *)spec_readlink }, /* readlink */ { &vop_abortop_desc, (vop_t *)spec_abortop }, /* abortop */ { &vop_inactive_desc, (vop_t *)spec_inactive }, /* inactive */ - { &vop_reclaim_desc, (vop_t *)spec_reclaim }, /* reclaim */ + { &vop_reclaim_desc, (vop_t *)devfs_reclaim }, /* reclaim */ { &vop_lock_desc, (vop_t *)spec_lock }, /* lock */ { &vop_unlock_desc, (vop_t *)spec_unlock }, /* unlock */ { &vop_bmap_desc, (vop_t *)spec_bmap }, /* bmap */ |