diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-12-11 09:25:06 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 7bb86316c3961d1bc401ef184fd996f999556c7f (patch) | |
tree | e67de3b594cf680f295010095a71ed7e825cb757 /fs/btrfs/tree-defrag.c | |
parent | 74493f7a59bfd4d1c7029c74ab2cd0e400612c6b (diff) |
Btrfs: Add back pointers from extents to the btree or file referencing them
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
-rw-r--r-- | fs/btrfs/tree-defrag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index 3994795edfeb..5c58630dce03 100644 --- a/fs/btrfs/tree-defrag.c +++ b/fs/btrfs/tree-defrag.c | |||
@@ -78,6 +78,8 @@ static int defrag_walk_down(struct btrfs_trans_handle *trans, | |||
78 | break; | 78 | break; |
79 | 79 | ||
80 | if (*level == 1) { | 80 | if (*level == 1) { |
81 | WARN_ON(btrfs_header_generation(path->nodes[*level]) != | ||
82 | trans->transid); | ||
81 | ret = btrfs_realloc_node(trans, root, | 83 | ret = btrfs_realloc_node(trans, root, |
82 | path->nodes[*level], | 84 | path->nodes[*level], |
83 | path->slots[*level], | 85 | path->slots[*level], |