bcachefs: Disk space accounting fix
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 17 Aug 2021 19:29:21 +0000 (15:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:10 +0000 (17:09 -0400)
commit62df3d443c389115f1664676ef75ba0fd157c2a4
tree886136fe56d394732485d29b9012aa910fffa840
parent8ddef4d6ccedcd571c9b81f6cd8dff8ddcdb918a
bcachefs: Disk space accounting fix

DIV_ROUND_UP() wasn't doing what we wanted when passing it negative
numbers - fix it by just not passing it negative numbers anymore.

Also, no need to do the scaling by compression ratio for incompressible
data.

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