btrfs: sink get_extent parameter to extent_write_full_page
authorDavid Sterba <dsterba@suse.com>
Fri, 23 Jun 2017 01:47:28 +0000 (03:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:13 +0000 (16:08 +0100)
There's only one caller.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c

index d9a76e33ac3c1342a6d655e61f781d72ad65c210..7754124b07b82d592459118e60f89097d020fa30 100644 (file)
@@ -4058,14 +4058,13 @@ static noinline void flush_write_bio(void *data)
 }
 
 int extent_write_full_page(struct extent_io_tree *tree, struct page *page,
-                         get_extent_t *get_extent,
                          struct writeback_control *wbc)
 {
        int ret;
        struct extent_page_data epd = {
                .bio = NULL,
                .tree = tree,
-               .get_extent = get_extent,
+               .get_extent = btrfs_get_extent,
                .extent_locked = 0,
                .sync_io = wbc->sync_mode == WB_SYNC_ALL,
        };
index b67fc0153b739b6fd319ec396c2ad5fd186568fa..abe4feea1539dda22b5ad0a3badc3319cd5681df 100644 (file)
@@ -404,7 +404,6 @@ int find_first_extent_bit(struct extent_io_tree *tree, u64 start,
 int extent_invalidatepage(struct extent_io_tree *tree,
                          struct page *page, unsigned long offset);
 int extent_write_full_page(struct extent_io_tree *tree, struct page *page,
-                         get_extent_t *get_extent,
                          struct writeback_control *wbc);
 int extent_write_locked_range(struct extent_io_tree *tree, struct inode *inode,
                              u64 start, u64 end, int mode);
index ae62d59edd4b237f147a32771053847c32d75c19..7403ef8856bd273760a869c8481d59672da45a93 100644 (file)
@@ -8891,7 +8891,7 @@ static int btrfs_writepage(struct page *page, struct writeback_control *wbc)
                return AOP_WRITEPAGE_ACTIVATE;
        }
        tree = &BTRFS_I(page->mapping->host)->io_tree;
-       ret = extent_write_full_page(tree, page, btrfs_get_extent, wbc);
+       ret = extent_write_full_page(tree, page, wbc);
        btrfs_add_delayed_iput(inode);
        return ret;
 }