diff options
author | David Sterba <dsterba@suse.cz> | 2015-02-20 17:42:11 (GMT) |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-03-03 16:24:01 (GMT) |
commit | 9d644a623ec48e28ca3887e616456aba63fd0558 (patch) | |
tree | 2f9bf8f9d055ecdf08cf6526b2368c45134d3af1 /fs/btrfs/scrub.c | |
parent | 47c5713f4737e460a3b2535abb8ae2e2afe2d2d0 (diff) | |
download | linux-9d644a623ec48e28ca3887e616456aba63fd0558.tar.xz |
btrfs: cleanup, use correct type in div_u64_rem
div_u64_rem expects u32 for divisior and reminder.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index c21581e..0d14146 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -2318,7 +2318,7 @@ static inline void __scrub_mark_bitmap(struct scrub_parity *sparity, unsigned long *bitmap, u64 start, u64 len) { - int offset; + u32 offset; int nsectors; int sectorsize = sparity->sctx->dev_root->sectorsize; @@ -2611,8 +2611,8 @@ static int get_raid56_logic_offset(u64 physical, int num, int j = 0; u64 stripe_nr; u64 last_offset; - int stripe_index; - int rot; + u32 stripe_index; + u32 rot; last_offset = (physical - map->stripes[num].physical) * nr_data_stripes(map); |