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)
commit3522e90301d7a669288611cb7e73cab4ac135545
tree9a65fe8672303ca491a347da10c635c77bb8250e
parent27a7ff554e8d349627a90bda275c527b7348adae
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