summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-12 13:51:24 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-05-12 13:51:24 -0400
commit9a9bdd6047a378dbe5a65a79cb8537f797d4fd5c (patch)
tree970d141f33eaa0ac683fb772797172d24c7b8d97 /disk-io.h
parentd160150c8bf255b1dee65cab7488ac2529433a39 (diff)
Pass down the expected generation number when reading tree blocks
Diffstat (limited to 'disk-io.h')
-rw-r--r--disk-io.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/disk-io.h b/disk-io.h
index b0328445..ffb4114b 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -25,8 +25,9 @@
struct btrfs_device;
struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr,
- u32 blocksize);
-int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize);
+ u32 blocksize, u64 parent_transid);
+int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize,
+ u64 parent_transid);
struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root,
u64 bytenr, u32 blocksize);
int clean_tree_block(struct btrfs_trans_handle *trans,
@@ -57,4 +58,5 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
int btrfs_open_device(struct btrfs_device *dev);
int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,
int verify);
+int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid);
#endif