Skip to content

Commit 25b860e

Browse files
committed
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>
1 parent e2932ee commit 25b860e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

fs/btrfs/extent_io.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3906,8 +3906,7 @@ int btree_write_cache_pages(struct address_space *mapping,
39063906
*/
39073907
static int extent_write_cache_pages(struct address_space *mapping,
39083908
struct writeback_control *wbc,
3909-
writepage_t writepage, void *data,
3910-
void (*flush_fn)(void *))
3909+
writepage_t writepage, void *data)
39113910
{
39123911
struct inode *inode = mapping->host;
39133912
int ret = 0;
@@ -3971,7 +3970,7 @@ static int extent_write_cache_pages(struct address_space *mapping,
39713970
* mapping
39723971
*/
39733972
if (!trylock_page(page)) {
3974-
flush_fn(data);
3973+
flush_write_bio(data);
39753974
lock_page(page);
39763975
}
39773976

@@ -3982,7 +3981,7 @@ static int extent_write_cache_pages(struct address_space *mapping,
39823981

39833982
if (wbc->sync_mode != WB_SYNC_NONE) {
39843983
if (PageWriteback(page))
3985-
flush_fn(data);
3984+
flush_write_bio(data);
39863985
wait_on_page_writeback(page);
39873986
}
39883987

@@ -4123,8 +4122,7 @@ int extent_writepages(struct extent_io_tree *tree,
41234122
.sync_io = wbc->sync_mode == WB_SYNC_ALL,
41244123
};
41254124

4126-
ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd,
4127-
flush_write_bio);
4125+
ret = extent_write_cache_pages(mapping, wbc, __extent_writepage, &epd);
41284126
flush_write_bio(&epd);
41294127
return ret;
41304128
}

0 commit comments

Comments
 (0)