]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove unnecessary code in __mb_check_buddy
authorJinke Han <hanjinke.666@bytedance.com>
Mon, 4 Apr 2022 15:22:43 +0000 (23:22 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 11 May 2022 19:19:06 +0000 (15:19 -0400)
commit3e7cec0bc55f92a93783c87de3e1ee556b658425
tree966ff0ca7dedd98731b2ac2b4b11afe62561bf5e
parentfa8eda2aab24c2b4f7fceef6928ab0c73775b473
ext4: remove unnecessary code in __mb_check_buddy

When enter elseif branch, the the MB_CHECK_ASSERT will never fail.
In addtion, the only illegal combination is 0/0, which can be caught
by the first if branch.

Signed-off-by: Jinke Han <hanjinke.666@bytedance.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220404152243.13556-1-hanjinke.666@bytedance.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c