git: sys/vfs/hammer: Cleanup sanity checks

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Apr 21 10:19:46 PDT 2015


commit 4fa5fb92edf94e3ddbbeecd94be13d3faf834b74
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Apr 21 21:01:00 2015 +0900

    sys/vfs/hammer: Cleanup sanity checks
    
    - Move sanity checks to the beginning of the function.
    
    - Check 'free_level > HAMMER_BIGBLOCK_SIZE'.
      free_level is somewhere between 0 and 8MB (inclusive).

Summary of changes:
 sys/vfs/hammer/hammer_reblock.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4fa5fb92edf94e3ddbbeecd94be13d3faf834b74


-- 
DragonFly BSD source repository



More information about the Commits mailing list