Revert "f2fs: prevent possible int overflow in dir_block_index()"
This reverts commit 67b4e793e4
.
This commit is contained in:
parent
9c15f09887
commit
02b4e700f3
1 changed files with 1 additions and 2 deletions
|
@ -191,8 +191,7 @@ static unsigned long dir_block_index(unsigned int level,
|
|||
unsigned long bidx = 0;
|
||||
|
||||
for (i = 0; i < level; i++)
|
||||
bidx += mul_u32_u32(dir_buckets(i, dir_level),
|
||||
bucket_blocks(i));
|
||||
bidx += dir_buckets(i, dir_level) * bucket_blocks(i);
|
||||
bidx += idx * bucket_blocks(level);
|
||||
return bidx;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue