path: root/disk-io.h
diff options
authorQu Wenruo <>2015-05-11 16:08:46 +0800
committerDavid Sterba <>2015-05-14 15:41:07 +0200
commit92b020ee0487b34282169a55a91261cee3daa1fe (patch)
treee1c66ec13071f673c0bde839d686167d06c24d98 /disk-io.h
parent2259f03439bd697b64efdb09dfc75638f24c4b48 (diff)
btrfs-progs: Export write_tree_block
Export write_tree_block() function and allow it write extent without transaction. This provides the basis for later uuid change function. Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'disk-io.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/disk-io.h b/disk-io.h
index 19f333ed..62eb566c 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -126,6 +126,9 @@ int csum_tree_block_size(struct extent_buffer *buf, u16 csum_sectorsize,
int verify);
int verify_tree_block_csum_silent(struct extent_buffer *buf, u16 csum_size);
int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid);
+int write_tree_block(struct btrfs_trans_handle *trans,
+ struct btrfs_root *root,
+ struct extent_buffer *eb);
int write_and_map_eb(struct btrfs_trans_handle *trans, struct btrfs_root *root,
struct extent_buffer *eb);