devfs: Fix namecache invalidation for alias nodes
authorFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 5 Dec 2014 18:28:57 +0000 (19:28 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 5 Dec 2014 19:26:45 +0000 (20:26 +0100)
commit9e27c355d85a6965488dd207ed0a9f126b3f1e12
treef504e193d77c44b4275a4a1e54bfa8b01cc0bd3c
parent83c251b046d8f9b452dadd712f6818e77d542d74
devfs: Fix namecache invalidation for alias nodes

* The devfs alias nodes don't have a directly associated vnode, they
  use the vnode of their target link.

* Unfortunately, the namecache invalidation code in devfs_freep() only
  processed vnodes registered in the devfs_node structure, missing the
  aliases.

* Put the namecache invalidation code in devfs_unlinkp() and make sure
  devfs alias node entries are properly invalidated.
sys/vfs/devfs/devfs_core.c