Revert "dm-unstriped: cast an operand to sector_t to prevent potential uint32_t overflow"
This reverts commit 3676f0afd7
.
This commit is contained in:
parent
5861bc757f
commit
6ae70539d5
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ static int unstripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
|
|||
}
|
||||
uc->physical_start = start;
|
||||
|
||||
uc->unstripe_offset = (sector_t)uc->unstripe * uc->chunk_size;
|
||||
uc->unstripe_width = (sector_t)(uc->stripes - 1) * uc->chunk_size;
|
||||
uc->unstripe_offset = uc->unstripe * uc->chunk_size;
|
||||
uc->unstripe_width = (uc->stripes - 1) * uc->chunk_size;
|
||||
uc->chunk_shift = is_power_of_2(uc->chunk_size) ? fls(uc->chunk_size) - 1 : 0;
|
||||
|
||||
tmp_len = ti->len;
|
||||
|
|
Loading…
Reference in a new issue