diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2019-06-21 10:02:54 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-04 17:26:17 +0200 |
commit | 9978059be8a1afd68bc0f7ab4c1883633ddd0312 (patch) | |
tree | 952b5465038a30b0143cd2e8a4678ee5292d7110 /fs/btrfs/extent_io.h | |
parent | 67f9c2209e885c8f97215655739155c94ca9cb9c (diff) | |
download | lwn-9978059be8a1afd68bc0f7ab4c1883633ddd0312.tar.gz lwn-9978059be8a1afd68bc0f7ab4c1883633ddd0312.zip |
btrfs: Evaluate io_tree in find_lock_delalloc_range()
Simplification. No point passing the tree variable when it can be
evaluated from inode. The tests now use the io_tree from btrfs_inode as
opposed to creating one.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 6e13a62a2974..401423b16976 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -549,7 +549,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 -bool find_lock_delalloc_range(struct inode *inode, struct extent_io_tree *tree, +bool find_lock_delalloc_range(struct inode *inode, struct page *locked_page, u64 *start, u64 *end); #endif |