diff options
author | Brett Holman <bholman.devel@gmail.com> | 2021-08-17 17:14:26 -0600 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:10 -0400 |
commit | fd0bd123d5bc11d665ad0e80eaf4b458619f8b3d (patch) | |
tree | 40838fd8ad81a446a80dcceb6899b62ac3aa5a82 /fs/bcachefs/buckets.c | |
parent | 28624ba424fd73154438fd6552e6b555b3376a65 (diff) | |
download | lwn-fd0bd123d5bc11d665ad0e80eaf4b458619f8b3d.tar.gz lwn-fd0bd123d5bc11d665ad0e80eaf4b458619f8b3d.zip |
bcachefs: Fix 32 bit build failures
This fix replaces multiple 64 bit divisions with do_div() equivalents.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.c')
-rw-r--r-- | fs/bcachefs/buckets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index e00c02dcb63e..d7994229ad5a 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -670,7 +670,7 @@ static s64 ptr_disk_sectors(s64 sectors, struct extent_ptr_decoded p) return p.crc.compression_type && p.crc.compression_type != BCH_COMPRESSION_TYPE_incompressible - ? DIV_ROUND_UP(sectors * p.crc.compressed_size, + ? DIV_ROUND_UP_ULL(sectors * p.crc.compressed_size, p.crc.uncompressed_size) : sectors; } |