git: sys/vfs/hammer: Add inline functions hammer_modify_buffer|volume_noundo()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Apr 30 10:49:25 PDT 2015


commit f1c0ae53ab2430b23b87e0fadccbd4d5ffd1f403
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Apr 30 19:15:55 2015 +0900

    sys/vfs/hammer: Add inline functions hammer_modify_buffer|volume_noundo()
    
    - Add noundo wrappers hammer_modify_buffer|volume_noundo() similar to
      the existing inline function hammer_modify_node_noundo() for better
      readability.
    
    - A pair of args (NULL, 0) indicating that it's not generating undo is
      a bit unclear (and there are even comments for them).
    
    - (The compiler doesn't actually inline hammer_modify_node_noundo()
      in my environment, but these one-line wrappers are inlined)

Summary of changes:
 sys/vfs/hammer/hammer.h          | 12 ++++++++++++
 sys/vfs/hammer/hammer_blockmap.c |  2 +-
 sys/vfs/hammer/hammer_flusher.c  |  4 ++--
 sys/vfs/hammer/hammer_mirror.c   |  4 ++--
 sys/vfs/hammer/hammer_object.c   |  8 ++++----
 sys/vfs/hammer/hammer_reblock.c  |  2 +-
 sys/vfs/hammer/hammer_recover.c  |  6 +++---
 sys/vfs/hammer/hammer_redo.c     |  4 ++--
 sys/vfs/hammer/hammer_undo.c     |  8 ++++----
 9 files changed, 31 insertions(+), 19 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list