btrfs: remove unused parameter from extent_write_cache_pages
authorDavid Sterba <dsterba@suse.com>
Fri, 10 Feb 2017 18:38:24 +0000 (19:38 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:53 +0000 (12:03 +0100)
The 'tree' was used to call locking hook that does not exist anymore.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index a546495fc18eed87df947be9e4b4a1e50b1a59af..d15b5ddb6732c6db31c472f6936760fff47c6310 100644 (file)
@@ -3911,8 +3911,7 @@ retry:
  * WB_SYNC_ALL then we were called for data integrity and we must wait for
  * existing IO to complete.
  */
-static int extent_write_cache_pages(struct extent_io_tree *tree,
-                            struct address_space *mapping,
+static int extent_write_cache_pages(struct address_space *mapping,
                             struct writeback_control *wbc,
                             writepage_t writepage, void *data,
                             void (*flush_fn)(void *))
@@ -4153,8 +4152,7 @@ int extent_writepages(struct extent_io_tree *tree,
                .bio_flags = 0,
        };
 
-       ret = extent_write_cache_pages(tree, mapping, wbc,
-                                      __extent_writepage, &epd,
+       ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd,
                                       flush_write_bio);
        flush_epd_write_bio(&epd);
        return ret;