git: sys/vfs/hammer: Don't repeat layer1 blockmap check of volume-to-remove

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Aug 22 10:53:23 PDT 2015


commit ff2ee76c43209cda267526f3b460f119e6d6070a
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Aug 21 21:12:06 2015 +0900

    sys/vfs/hammer: Don't repeat layer1 blockmap check of volume-to-remove
    
    hammer's blockmap allocator can simply skip the whole volume
    without going through unnecessary goto;s when the allocator's
    current zone2 offset is in the volume-to-remove.
    
    This is similar to 0871ec5 except that this commit does not
    need to check layer1->phys_offset because that volume is what
    hammer volume-del is wanting to remove.

Summary of changes:
 sys/vfs/hammer/hammer_blockmap.c | 49 ++++++++++++++++++++++++----------------
 1 file changed, 29 insertions(+), 20 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list