diff options
author | David Sterba <dsterba@suse.com> | 2018-03-07 15:33:22 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:50 +0200 |
commit | 051c98eb11e6fd64a8306851c34ee485b5817955 (patch) | |
tree | 1e4a90781446147428dccb6aa8b5da11b171079c /fs/btrfs/inode.c | |
parent | btrfs: Use filemap_range_has_page() (diff) | |
download | linux-051c98eb11e6fd64a8306851c34ee485b5817955.tar.xz linux-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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index c92455428c01..fc5b7d82b842 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7489,8 +7489,8 @@ static int lock_extent_direct(struct inode *inode, u64 lockstart, u64 lockend, * get stale data. */ if (!ordered && - (!writing || - !btrfs_page_exists_in_range(inode, lockstart, lockend))) + (!writing || !filemap_range_has_page(inode->i_mapping, + lockstart, lockend))) break; unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, |