diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-10 02:29:26 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:31 +0200 |
commit | 502f973dba660ed04f295e5ba129f2d369cc1aa6 (patch) | |
tree | 6c6f78016565915c5d510925596dbaa71a285f75 /fs/bcachefs/journal_io.c | |
parent | bcachefs: bch2_btree_delete_extent_at() (diff) | |
download | linux-502f973dba660ed04f295e5ba129f2d369cc1aa6.tar.xz linux-502f973dba660ed04f295e5ba129f2d369cc1aa6.zip |
bcachefs: Fix a few warnings on 32 bit
These showed up when building for mips.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/journal_io.c')
-rw-r--r-- | fs/bcachefs/journal_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index c84c0b840906..64341da75963 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -987,7 +987,7 @@ static void bch2_journal_read_device(struct closure *cl) for (i = 0; i < r->nr_ptrs; i++) { if (r->ptrs[i].dev == ca->dev_idx && sector_to_bucket(ca, r->ptrs[i].sector) == ja->buckets[ja->cur_idx]) { - unsigned wrote = (r->ptrs[i].sector % ca->mi.bucket_size) + + unsigned wrote = bucket_remainder(ca, r->ptrs[i].sector) + vstruct_sectors(&r->j, c->block_bits); ja->sectors_free = min(ja->sectors_free, |