sys/vfs/hammer2: Cleanup freemap index calculation
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 16 Sep 2019 13:02:13 +0000 (22:02 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 16 Sep 2019 22:56:32 +0000 (07:56 +0900)
commitcef11e5a699b5d500d12a5716b8337beed0d9f86
treeae35ddd390076dee4932ad7f8ff08744e71f186e
parentae49546648da4d895a009ce3c4f2f73edb25ce79
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.
sys/vfs/hammer2/hammer2_freemap.c