diff options
author | Tom Rini <trini@konsulko.com> | 2021-01-20 16:45:21 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-20 16:45:43 -0500 |
commit | 83433fdab4920e206700bca33b9040c7978afc9d (patch) | |
tree | 337bc3bf628c133320b5589b5865bb3d64c05bd1 /fs/btrfs/volumes.c | |
parent | 404bbc809da50fcf0b63566803d5061f80d93885 (diff) | |
parent | 81f562719e475b0e13ff7a0201cae19f8cc367fe (diff) |
Merge branch '2021-01-20-fs-fixes'
- Minor SquashFS, BTRFS ubifs fixes
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index fcf52d4b0ff..4aaaeab663f 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1030,7 +1030,7 @@ again: */ stripe_nr = stripe_nr / map->stripe_len; - stripe_offset = stripe_nr * map->stripe_len; + stripe_offset = stripe_nr * (u64)map->stripe_len; BUG_ON(offset < stripe_offset); /* stripe_offset is the offset of this block in its stripe*/ @@ -1103,7 +1103,7 @@ again: rot = stripe_nr % map->num_stripes; /* Fill in the logical address of each stripe */ - tmp = stripe_nr * nr_data_stripes(map); + tmp = (u64)stripe_nr * nr_data_stripes(map); for (i = 0; i < nr_data_stripes(map); i++) raid_map[(i+rot) % map->num_stripes] = |