bcachefs: bch2_hprint(): don't print decimal if conversion was exact
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 28 Dec 2021 21:01:25 +0000 (16:01 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000 (17:09 -0400)
commit042b0f38642f534fe92122c5b5695739390bbe34
tree6bea64b6bff8d3c272a0afbf42255cdf3c86587e
parente3ad29379e47014461d540629628c2cc158c025d
bcachefs: bch2_hprint(): don't print decimal if conversion was exact

There's places where we parse these numbers, and our parsing doesn't
cope with decimals currently - this is a hack to get the device_add path
working again where for the device blocksize there doesn't ever need to
be a decimal.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/util.c