git: sbin/hammer2: Simplify bitmap offset calculation in "freemap"

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Aug 15 08:52:18 PDT 2019


commit 43c0f951c5652ed2ef36ced60f223c0f0ff104f7
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Aug 16 00:10:10 2019 +0900

    sbin/hammer2: Simplify bitmap offset calculation in "freemap"
    
    Eliminate a magic number 256 (4MB / 16KB).
    Each hammer2_bmap_data in leaf covers 4MB (level 0) data store.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/43c0f951c5652ed2ef36ced60f223c0f0ff104f7


-- 
DragonFly BSD source repository


More information about the Commits mailing list