Skip to content
Commit 9feffe14 authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Jaegeuk Kim
Browse files

f2fs: update_sit_entry: Make the judgment condition of f2fs_bug_on more intuitive



Current judgment condition of f2fs_bug_on in function update_sit_entry():
  new_vblocks >> (sizeof(unsigned short) << 3) ||
	new_vblocks > sbi->blocks_per_seg

which equivalents to:
  new_vblocks < 0 || new_vblocks > sbi->blocks_per_seg

The latter is more intuitive.

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reported-by: default avatarJack Qiu <jack.qiu@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 58f7e00f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment