diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-05-13 13:48:58 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-05-13 13:48:58 -0400 |
commit | 351d17fca2cf8063f323a060cd3c4af62ef58d15 (patch) | |
tree | d91b63f25ae45260b9b89f7c70b6af7c34bede79 /extent-tree.c | |
parent | 9a9bdd6047a378dbe5a65a79cb8537f797d4fd5c (diff) |
Verify parent generation number on btree reads
Diffstat (limited to 'extent-tree.c')
-rw-r--r-- | extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extent-tree.c b/extent-tree.c index 545884a9..767867f9 100644 --- a/extent-tree.c +++ b/extent-tree.c @@ -1253,7 +1253,7 @@ static int pin_down_bytes(struct btrfs_root *root, u64 bytenr, u32 num_bytes, if (!pending) { buf = btrfs_find_tree_block(root, bytenr, num_bytes); if (buf) { - if (btrfs_buffer_uptodate(buf)) { + if (btrfs_buffer_uptodate(buf, 0)) { u64 transid = root->fs_info->running_transaction->transid; if (btrfs_header_generation(buf) == @@ -1967,7 +1967,7 @@ static int noinline walk_down_tree(struct btrfs_trans_handle *trans, continue; } next = btrfs_find_tree_block(root, bytenr, blocksize); - if (!next || !btrfs_buffer_uptodate(next)) { + if (!next || !btrfs_buffer_uptodate(next, ptr_gen)) { free_extent_buffer(next); reada_walk_down(root, cur, path->slots[*level]); mutex_unlock(&root->fs_info->fs_mutex); |