OSDN Git Service

btrfs: fix bool type in btrfs_page_exists_in_range
authorDavid Sterba <dsterba@suse.com>
Thu, 11 May 2017 23:02:22 +0000 (01:02 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:59 +0000 (18:25 +0200)
We use only a simple bool indicator, int is not a problem here.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c

index 97b2bb9..683ee05 100644 (file)
@@ -7486,7 +7486,7 @@ out:
 bool btrfs_page_exists_in_range(struct inode *inode, loff_t start, loff_t end)
 {
        struct radix_tree_root *root = &inode->i_mapping->page_tree;
-       int found = false;
+       bool found = false;
        void **pagep = NULL;
        struct page *page = NULL;
        unsigned long start_idx;