summaryrefslogtreecommitdiff
path: root/fs/btrfs/btrfs_inode.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-07 15:33:22 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-31 01:26:50 +0200
commit051c98eb11e6fd64a8306851c34ee485b5817955 (patch)
tree1e4a90781446147428dccb6aa8b5da11b171079c /fs/btrfs/btrfs_inode.h
parent965aab1cfc13dacc3d5ad0d8d8eb4e0a7ea8c1d1 (diff)
downloadlwn-051c98eb11e6fd64a8306851c34ee485b5817955.tar.gz
lwn-051c98eb11e6fd64a8306851c34ee485b5817955.zip
btrfs: open code trivial helper btrfs_page_exists_in_range
The called function name is self explanatory. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r--fs/btrfs/btrfs_inode.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index 078a53e01ece..ca15be569d69 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -364,10 +364,4 @@ static inline void btrfs_print_data_csum_error(struct btrfs_inode *inode,
logical_start, csum, csum_expected, mirror_num);
}
-static inline bool btrfs_page_exists_in_range(struct inode *inode,
- loff_t start, loff_t end)
-{
- return filemap_range_has_page(inode->i_mapping, start, end);
-}
-
#endif