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>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user