[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <213c79b1-39cc-1b22-f2d9-d6b5ee3dbdab@huawei.com>
Date: Tue, 4 Aug 2020 08:57:27 +0800
From: Chao Yu <yuchao0@...wei.com>
To: Zhihao Cheng <chengzhihao1@...wei.com>, <jaegeuk@...nel.org>,
<chao@...nel.org>, <yi.zhang@...wei.com>
CC: <linux-kernel@...r.kernel.org>,
<linux-f2fs-devel@...ts.sourceforge.net>
Subject: Re: [f2fs-dev] [PATCH] f2fs: update_sit_entry: Make the judgment
condition of f2fs_bug_on more intuitive
On 2020/8/1 11:24, Zhihao Cheng wrote:
> 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: Zhihao Cheng <chengzhihao1@...wei.com>
> Reported-by: Jack Qiu <jack.qiu@...wei.com>
Reviewed-by: Chao Yu <yuchao0@...wei.com>
Thanks,
Powered by blists - more mailing lists