hammer2 - Remove the hidden directory, rework deletions
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 27 Jun 2016 20:08:56 +0000 (13:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 27 Jun 2016 20:14:09 +0000 (13:14 -0700)
commitb652edda47018dae2393f58e7c7d62bd41f746f8
treefca2576c688e3572a77137949bb19a10a3e8d9ff
parent6de344baaa1923ba65e83c698fc34ae686de07dc
hammer2 - Remove the hidden directory, rework deletions

* Now that inodes are separately indexed we no longer need the hidden
  directory abstraction to handle unlinked-but-open files.  Get rid of
  ALL the hidden directory handling code.

* Rework xop_unlink and hammer2_inode_unlink_finisher().  We cannot safely
  reference the inode chain's inode data to get the nlinks count.  Instead,
  figure it all out on the frontend using the active nlinks in the
  hammer2_inode_t structure.

* Fixes hardlink removal and rename issues.
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_disk.h
sys/vfs/hammer2/hammer2_inode.c
sys/vfs/hammer2/hammer2_vfsops.c
sys/vfs/hammer2/hammer2_vnops.c
sys/vfs/hammer2/hammer2_xops.c