All callers pass btrfs_get_extent.

Signed-off-by: David Sterba <[email protected]>
---
 fs/btrfs/extent_io.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index a266239716f7..72620cf41423 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3089,7 +3089,6 @@ static int __do_readpage(struct extent_io_tree *tree,
 static inline void __do_contiguous_readpages(struct extent_io_tree *tree,
                                             struct page *pages[], int nr_pages,
                                             u64 start, u64 end,
-                                            get_extent_t *get_extent,
                                             struct extent_map **em_cached,
                                             struct bio **bio,
                                             unsigned long *bio_flags,
@@ -3112,8 +3111,8 @@ static inline void __do_contiguous_readpages(struct 
extent_io_tree *tree,
        }
 
        for (index = 0; index < nr_pages; index++) {
-               __do_readpage(tree, pages[index], get_extent, em_cached, bio,
-                             0, bio_flags, 0, prev_em_start);
+               __do_readpage(tree, pages[index], btrfs_get_extent, em_cached,
+                               bio, 0, bio_flags, 0, prev_em_start);
                put_page(pages[index]);
        }
 }
@@ -3142,8 +3141,7 @@ static void __extent_readpages(struct extent_io_tree 
*tree,
                } else {
                        __do_contiguous_readpages(tree, &pages[first_index],
                                                  index - first_index, start,
-                                                 end, btrfs_get_extent,
-                                                 em_cached,
+                                                 end, em_cached,
                                                  bio, bio_flags,
                                                  prev_em_start);
                        start = page_start;
@@ -3155,7 +3153,7 @@ static void __extent_readpages(struct extent_io_tree 
*tree,
        if (end)
                __do_contiguous_readpages(tree, &pages[first_index],
                                          index - first_index, start,
-                                         end, btrfs_get_extent, em_cached, bio,
+                                         end, em_cached, bio,
                                          bio_flags, prev_em_start);
 }
 
-- 
2.14.3

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to