summaryrefslogtreecommitdiff
path: root/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-13 13:48:58 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-05-13 13:48:58 -0400
commit351d17fca2cf8063f323a060cd3c4af62ef58d15 (patch)
treed91b63f25ae45260b9b89f7c70b6af7c34bede79 /ctree.c
parent9a9bdd6047a378dbe5a65a79cb8537f797d4fd5c (diff)
Verify parent generation number on btree reads
Diffstat (limited to 'ctree.c')
-rw-r--r--ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctree.c b/ctree.c
index 87574d9e..881c115b 100644
--- a/ctree.c
+++ b/ctree.c
@@ -378,7 +378,7 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
cur = btrfs_find_tree_block(root, blocknr, blocksize);
if (cur)
- uptodate = btrfs_buffer_uptodate(cur);
+ uptodate = btrfs_buffer_uptodate(cur, gen);
else
uptodate = 0;
if (!cur || !uptodate) {