Revert "f2fs: prevent possible int overflow in dir_block_index()"

This reverts commit 67b4e793e4.
This commit is contained in:
Ksawlii 2024-11-24 00:23:15 +01:00
parent 9c15f09887
commit 02b4e700f3

View file

@ -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;
}