]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: remove redundant condition in btrfs_run_delalloc_range
authorHaowen Bai <baihaowen@meizu.com>
Wed, 23 Mar 2022 01:45:58 +0000 (09:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 5 Apr 2022 22:49:09 +0000 (00:49 +0200)
commit84b28edeca636734e128b6ab7e7974eea26f9f32
treefa102b9830b426b2208a0e946b7f8a50faca504a
parent554a4f93a4a80de33f82c8bbb3f04f2cd2657050
btrfs: zoned: remove redundant condition in btrfs_run_delalloc_range

The logic !A || A && B is equivalent to !A || B. so we can
make code clear.

Note: though it's preferred to be in the more human readable form, there
have been repeated reports and patches as the expression is detected by
tools so apply it to reduce the load.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add note ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c