]> git.sesse.net Git - bcachefs-tools-debian/commit
init_layout(): fix rounding
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Fri, 12 Jan 2024 17:56:49 +0000 (18:56 +0100)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 12 Jan 2024 18:09:51 +0000 (13:09 -0500)
commitb6afe1bed4fe47bc4e820ab17cbe8161a3b62c8e
tree906405a574cab627041e0d126089e7dc2a5e1204
parent2b7fda5aeeecc9f9575536d401395e4a9ecaaf26
init_layout(): fix rounding

block_size is in bytes, not sectors, so when calling round_up(),
we could start rounding up by a way too large size and then overflow
outside the area that migrate allocated for us.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
libbcachefs.c