diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-05-12 12:59:19 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | ca7a79ad8dbe24669a8ced01f9fc0126b872745d (patch) | |
tree | 0d53d8e6fd9ff9aece4e703581918c7817175d5d /fs/btrfs/disk-io.h | |
parent | 188de649c51f03df3f8a601aea0110a3870815c2 (diff) |
Btrfs: Pass down the expected generation number when reading tree blocks
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 5d5f6979c41c..e29c895d5230 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -25,8 +25,9 @@ struct btrfs_device; | |||
25 | struct btrfs_fs_devices; | 25 | struct btrfs_fs_devices; |
26 | 26 | ||
27 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, | 27 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, |
28 | u32 blocksize); | 28 | u32 blocksize, u64 parent_transid); |
29 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize); | 29 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, |
30 | u64 parent_transid); | ||
30 | struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, | 31 | struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, |
31 | u64 bytenr, u32 blocksize); | 32 | u64 bytenr, u32 blocksize); |
32 | int clean_tree_block(struct btrfs_trans_handle *trans, | 33 | int clean_tree_block(struct btrfs_trans_handle *trans, |
@@ -65,7 +66,7 @@ int btrfs_buffer_defrag(struct extent_buffer *buf); | |||
65 | int btrfs_buffer_defrag_done(struct extent_buffer *buf); | 66 | int btrfs_buffer_defrag_done(struct extent_buffer *buf); |
66 | int btrfs_clear_buffer_defrag(struct extent_buffer *buf); | 67 | int btrfs_clear_buffer_defrag(struct extent_buffer *buf); |
67 | int btrfs_clear_buffer_defrag_done(struct extent_buffer *buf); | 68 | int btrfs_clear_buffer_defrag_done(struct extent_buffer *buf); |
68 | int btrfs_read_buffer(struct extent_buffer *buf); | 69 | int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid); |
69 | u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len); | 70 | u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len); |
70 | void btrfs_csum_final(u32 crc, char *result); | 71 | void btrfs_csum_final(u32 crc, char *result); |
71 | void btrfs_throttle(struct btrfs_root *root); | 72 | void btrfs_throttle(struct btrfs_root *root); |