}
}
-static void btrfs_wait_tree_block_writeback(struct extent_buffer *buf)
-{
- filemap_fdatawait_range(buf->pages[0]->mapping,
- buf->start, buf->start + buf->len - 1);
-}
-
/*
* the walk control struct is used to pass state down the chain when
* processing the log tree. The stage field tells us which part
btrfs_tree_lock(next);
btrfs_clear_buffer_dirty(trans, next);
- btrfs_wait_tree_block_writeback(next);
+ wait_on_extent_buffer_writeback(next);
btrfs_tree_unlock(next);
if (trans) {
btrfs_tree_lock(next);
btrfs_clear_buffer_dirty(trans, next);
- btrfs_wait_tree_block_writeback(next);
+ wait_on_extent_buffer_writeback(next);
btrfs_tree_unlock(next);
if (trans) {
btrfs_tree_lock(next);
btrfs_clear_buffer_dirty(trans, next);
- btrfs_wait_tree_block_writeback(next);
+ wait_on_extent_buffer_writeback(next);
btrfs_tree_unlock(next);
if (trans) {