git: sys/vfs/hammer2: Cleanup freemap index calculation

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Sep 17 12:24:47 PDT 2019


commit cef11e5a699b5d500d12a5716b8337beed0d9f86
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Sep 16 22:02:13 2019 +0900

    sys/vfs/hammer2: Cleanup freemap index calculation
    
    Freemap bitmaps (64KB x 5levels x 8rotations) exist in the first
    4MB area of every 1GB, so bitmap offset mask should be 4MB-1 rather
    than 1GB-1. It explicitly wants to clear bit 22-29.
    
    This doesn't change the result since bref->data_off for freemap
    itself has to have 0 for bit 22-29.

Summary of changes:
 sys/vfs/hammer2/hammer2_freemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list