git: sys/vfs/hammer2: Use howmany() to calculate bulkfree bmap size

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun May 28 02:43:59 PDT 2023


commit 23d820f09112794a1a85ba798fea6551b78f974d
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Sun May 28 02:15:12 2023 -0700

    sys/vfs/hammer2: Use howmany() to calculate bulkfree bmap size
    
    Note that the calculation here is based on the ratio below.
    1GB (layer1 size) : 32KB (layer1 bmap total) = hmp->total_size : size

Summary of changes:
 sys/vfs/hammer2/hammer2_bulkfree.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/23d820f09112794a1a85ba798fea6551b78f974d


-- 
DragonFly BSD source repository


More information about the Commits mailing list