tmpfs - Fix numerous races and adjust to use cache_unlink()
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Aug 2012 23:30:20 +0000 (16:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Aug 2012 23:30:20 +0000 (16:30 -0700)
commit6e0c5aabac8d345557e78062b61bd3c1ed432332
tree41797da21cdd1029c9d2c835aa99a2f7c1d43609
parent5323ed62048a8d506c864f61c5c2e913cd378c61
tmpfs - Fix numerous races and adjust to use cache_unlink()

* Fix numerous issues when chdir'd into a directory that is then
  rmdir'd.

* Rewrite the link count handling code for directories, also removing
  two now unecessary recursions.

* Do not allow new files to be created in a directory which has been
  rmdir'd.

* Use the new cache_unlink facility.
sys/vfs/tmpfs/tmpfs.h
sys/vfs/tmpfs/tmpfs_subr.c
sys/vfs/tmpfs/tmpfs_vfsops.c
sys/vfs/tmpfs/tmpfs_vnops.c