aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorGravatar Zhihao Cheng <chengzhihao1@huawei.com> 2020-08-01 11:24:50 +0800
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2020-08-03 18:05:13 -0700
commit9feffe14661bb6f5200bc5712999378832d129c5 (patch)
tree5e8c8efa278a7cdc1b554c9e214902692b051588 /fs/f2fs/checkpoint.c
parentf2fs: replace test_and_set/clear_bit() with set/clear_bit() (diff)
downloadlinux-9feffe14661bb6f5200bc5712999378832d129c5.tar.gz
linux-9feffe14661bb6f5200bc5712999378832d129c5.tar.bz2
linux-9feffe14661bb6f5200bc5712999378832d129c5.zip
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: Zhihao Cheng <chengzhihao1@huawei.com> Reported-by: Jack Qiu <jack.qiu@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
0 files changed, 0 insertions, 0 deletions