Revert "f2fs: avoid potential int overflow in sanity_check_area_boundary()"
This reverts commit 331eb7909d
.
This commit is contained in:
parent
aaabb6f0b9
commit
9c15f09887
1 changed files with 2 additions and 2 deletions
|
@ -3225,9 +3225,9 @@ static inline bool sanity_check_area_boundary(struct f2fs_sb_info *sbi,
|
|||
u32 segment_count = le32_to_cpu(raw_super->segment_count);
|
||||
u32 log_blocks_per_seg = le32_to_cpu(raw_super->log_blocks_per_seg);
|
||||
u64 main_end_blkaddr = main_blkaddr +
|
||||
((u64)segment_count_main << log_blocks_per_seg);
|
||||
(segment_count_main << log_blocks_per_seg);
|
||||
u64 seg_end_blkaddr = segment0_blkaddr +
|
||||
((u64)segment_count << log_blocks_per_seg);
|
||||
(segment_count << log_blocks_per_seg);
|
||||
|
||||
if (segment0_blkaddr != cp_blkaddr) {
|
||||
f2fs_info(sbi, "Mismatch start address, segment0(%u) cp_blkaddr(%u)",
|
||||
|
|
Loading…
Add table
Reference in a new issue