git: hammer2 - Try a different approach to bulkfree

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 21 21:06:38 PDT 2017


commit f079a0a8bb6139863788e815c5d46221817e16e3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 21 21:04:14 2017 -0700

    hammer2 - Try a different approach to bulkfree
    
    * Attempt to fix an issue in the previous version where some dirty chains
      could slip through the gaps and prevent bulkfree from working properly.
    
    * Do a full filesystem sync instead of a partial sync.
    
    * Use the post-sync hmp->volsync structure to obtain the blockref array,
      interlocked against the sync.

Summary of changes:
 sys/vfs/hammer2/hammer2.h          |  6 ++---
 sys/vfs/hammer2/hammer2_bulkfree.c | 34 +++------------------------
 sys/vfs/hammer2/hammer2_chain.c    | 47 ++++++++++++--------------------------
 sys/vfs/hammer2/hammer2_flush.c    |  2 ++
 sys/vfs/hammer2/hammer2_ioctl.c    | 40 ++++++++++++++++++++++++--------
 5 files changed, 53 insertions(+), 76 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list