btrfs: sink get_extent parameter to extent_write_locked_range
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:12 +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 1d7aebd020adb7f0f806585eac6607580ab533c9..d9a76e33ac3c1342a6d655e61f781d72ad65c210 100644 (file)
@@ -4077,8 +4077,7 @@ int extent_write_full_page(struct extent_io_tree *tree, struct page *page,
 }
 
 int extent_write_locked_range(struct extent_io_tree *tree, struct inode *inode,
-                             u64 start, u64 end, get_extent_t *get_extent,
-                             int mode)
+                             u64 start, u64 end, int mode)
 {
        int ret = 0;
        struct address_space *mapping = inode->i_mapping;
@@ -4089,7 +4088,7 @@ int extent_write_locked_range(struct extent_io_tree *tree, struct inode *inode,
        struct extent_page_data epd = {
                .bio = NULL,
                .tree = tree,
-               .get_extent = get_extent,
+               .get_extent = btrfs_get_extent,
                .extent_locked = 1,
                .sync_io = mode == WB_SYNC_ALL,
        };
index e07f9e1c34e878c267a36490626a6fafd8dbfcaf..b67fc0153b739b6fd319ec396c2ad5fd186568fa 100644 (file)
@@ -407,8 +407,7 @@ 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, get_extent_t *get_extent,
-                             int mode);
+                             u64 start, u64 end, int mode);
 int extent_writepages(struct extent_io_tree *tree,
                      struct address_space *mapping,
                      struct writeback_control *wbc);
index a49dd803fb0359a6b9e2b142d79ae9ad9ade37d1..ae62d59edd4b237f147a32771053847c32d75c19 100644 (file)
@@ -769,7 +769,6 @@ retry:
                                                  inode, async_extent->start,
                                                  async_extent->start +
                                                  async_extent->ram_size - 1,
-                                                 btrfs_get_extent,
                                                  WB_SYNC_ALL);
                        else if (ret)
                                unlock_page(async_cow->locked_page);