git: hammer2 hammer2 - Bug fixes in allocator and chain_next, rename

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Mar 22 00:18:35 PDT 2012


commit 8e12e3c905580716a7a87e739f4a364678ad2e83
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Mar 22 00:12:43 2012 -0700

    hammer2 - Bug fixes in allocator and chain_next, rename
    
    * The addition of a larger segment to allocate blocks out of caused
      the allocator to mishandle 64K requests, resulting in non-optimal
      I/O performance.
    
    * Fix a bug in hammer2_chain_next() which was causing truncations to
      crash.
    
    * Rename operations would sometimes not recursively mark the chain
      MODIFIED1 or would not mark the updated inode MOVED, causing
      data loss.
    
    * Replace HAMMER2_CHAIN_WAS_MODIFIED with a local variable.

Summary of changes:
 sys/vfs/hammer2/hammer2.h         |    4 +-
 sys/vfs/hammer2/hammer2_chain.c   |   46 +++++++++++++++++++++++-------------
 sys/vfs/hammer2/hammer2_freemap.c |    2 +-
 sys/vfs/hammer2/hammer2_vnops.c   |    9 ++++++-
 4 files changed, 40 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8e12e3c905580716a7a87e739f4a364678ad2e83


-- 
DragonFly BSD source repository





More information about the Commits mailing list