Btrfs: Handle write errors on raid1 and raid10
[linux-2.6-block.git] / fs / btrfs / ctree.c
index 289d71d8653a9caf19a51fbe0e51b07a2033efcb..02e571e6ee620efacb5529a67d262f81759ab153 100644 (file)
@@ -379,7 +379,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) {