diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-08-17 15:29:21 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:10 -0400 |
commit | 62df3d443c389115f1664676ef75ba0fd157c2a4 (patch) | |
tree | 886136fe56d394732485d29b9012aa910fffa840 /fs/bcachefs/fs-io.c | |
parent | 8ddef4d6ccedcd571c9b81f6cd8dff8ddcdb918a (diff) | |
download | lwn-62df3d443c389115f1664676ef75ba0fd157c2a4.tar.gz lwn-62df3d443c389115f1664676ef75ba0fd157c2a4.zip |
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>
Diffstat (limited to 'fs/bcachefs/fs-io.c')
0 files changed, 0 insertions, 0 deletions