summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorLu Fengqi2018-11-29 04:33:38 +0100
committerDavid Sterba2018-12-17 14:51:44 +0100
commit3522e90301d7a669288611cb7e73cab4ac135545 (patch)
tree9a65fe8672303ca491a347da10c635c77bb8250e /fs/btrfs/extent_io.h
parentbtrfs: skip file_extent generation check for free_space_inode in run_delalloc... (diff)
downloadkernel-qcow2-linux-3522e90301d7a669288611cb7e73cab4ac135545.tar.gz
kernel-qcow2-linux-3522e90301d7a669288611cb7e73cab4ac135545.tar.xz
kernel-qcow2-linux-3522e90301d7a669288611cb7e73cab4ac135545.zip
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>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index fd42492e62e5..04eefa93fe1f 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -525,7 +525,7 @@ int free_io_failure(struct extent_io_tree *failure_tree,
struct extent_io_tree *io_tree,
struct io_failure_record *rec);
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
-u64 find_lock_delalloc_range(struct inode *inode, struct extent_io_tree *tree,
+bool find_lock_delalloc_range(struct inode *inode, struct extent_io_tree *tree,
struct page *locked_page, u64 *start,
u64 *end);
#endif