git: hammer2 - Remove the hidden directory, rework deletions

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Jun 27 13:14:12 PDT 2016


commit b652edda47018dae2393f58e7c7d62bd41f746f8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Jun 27 13:08:56 2016 -0700

    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.

Summary of changes:
 sys/vfs/hammer2/hammer2.h        |   6 +-
 sys/vfs/hammer2/hammer2_chain.c  |   4 +
 sys/vfs/hammer2/hammer2_disk.h   |   1 -
 sys/vfs/hammer2/hammer2_inode.c  | 209 ++++-----------------------------------
 sys/vfs/hammer2/hammer2_vfsops.c |  21 ----
 sys/vfs/hammer2/hammer2_vnops.c  |   7 +-
 sys/vfs/hammer2/hammer2_xops.c   |  85 ++++++++--------
 7 files changed, 72 insertions(+), 261 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b652edda47018dae2393f58e7c7d62bd41f746f8


-- 
DragonFly BSD source repository



More information about the Commits mailing list