git: sbin/hammer: Refactor get_buffer()
    Tomohiro Kusumi 
    tkusumi at crater.dragonflybsd.org
       
    Sun Mar 27 10:07:46 PDT 2016
    
    
  
commit ec458f1f2501a20d84a568f255306fac2055f27f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Mar 25 01:48:30 2016 +0900
    sbin/hammer: Refactor get_buffer()
    
    buf and buf->ondisk are allocated and freed at the same time.
    buf->ondisk is always NULL if buf hasn't existed, but
    buf->ondisk is never NULL if buf already exists.
    
    There isn't a situation where buf exists but buf->ondisk is
    not malloced or thrown away.
Summary of changes:
 sbin/hammer/ondisk.c | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec458f1f2501a20d84a568f255306fac2055f27f
-- 
DragonFly BSD source repository
    
    
More information about the Commits
mailing list