Re: [PATCH resend] fs/ext4: use BUG_ON instead of if condition followed by BUG

From: Theodore Ts'o
Date: Wed Jan 05 2022 - 23:41:23 EST


On Tue, Dec 28, 2021 at 07:32:52AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: xu xin <xu.xin16@xxxxxxxxxx>
>
> BUG_ON would be better.
>
> This issue was detected with the help of Coccinelle.
>
> Reported-by: Zeal robot <zealci@xxxxxxxxxx>
> Reviewed-by: Lukas Czerner <lczerner@xxxxxxxxxx>
> Signed-off-by: xu xin <xu.xin16@xxxxxxxxxx>

Thanks, applied.

- Ted