summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-06-23 04:30:28 +0200
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:18 +0100
commit25b860e038915ffb6c3d8d3fe8c46272a8d471fe (patch)
tree133d58de4eac48fc0422cd00520e82c103e230f1 /fs/btrfs/extent_io.c
parente2932ee08e46629b0d39eda920e1d795e6d83946 (diff)
btrfs: sink flush_fn to extent_write_cache_pages
All callers pass the same value flush_write_bio. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index f1842d59fffe..cf106d46a2fd 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -3906,8 +3906,7 @@ retry:
*/
static int extent_write_cache_pages(struct address_space *mapping,
struct writeback_control *wbc,
- writepage_t writepage, void *data,
- void (*flush_fn)(void *))
+ writepage_t writepage, void *data)
{
struct inode *inode = mapping->host;
int ret = 0;
@@ -3971,7 +3970,7 @@ retry:
* mapping
*/
if (!trylock_page(page)) {
- flush_fn(data);
+ flush_write_bio(data);
lock_page(page);
}
@@ -3982,7 +3981,7 @@ retry:
if (wbc->sync_mode != WB_SYNC_NONE) {
if (PageWriteback(page))
- flush_fn(data);
+ flush_write_bio(data);
wait_on_page_writeback(page);
}
@@ -4123,8 +4122,7 @@ int extent_writepages(struct extent_io_tree *tree,
.sync_io = wbc->sync_mode == WB_SYNC_ALL,
};
- ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd,
- flush_write_bio);
+ ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd);
flush_write_bio(&epd);
return ret;
}