]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove always true if branch in find_delalloc_range
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Thu, 29 Nov 2018 03:33:38 +0000 (11:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:44 +0000 (14:51 +0100)
commit0e82b871d3b50b0c785951158dafd9230115fb16
tree9a65fe8672303ca491a347da10c635c77bb8250e
parent6deeb65461c1bd2f77623191ec4946a6431d3aac
btrfs: remove always true if branch in find_delalloc_range

The @found is always false when it comes to the if branch. Besides, the
bool type is more suitable for @found. Change the return value of the
function and its caller to bool as well.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/tests/extent-io-tests.c