summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@linux.intel.com>2011-02-14 16:00:03 -0500
committerChris Mason <chris.mason@oracle.com>2011-02-14 16:00:03 -0500
commit6848ad6461e551849ba3c32d945d4f45e96453a6 (patch)
tree86ab53a68e0b3181594808b43ef9fec333ea61f2 /fs/btrfs
parente3f24cc521cb7ba60ac137abd1939e4e03435e80 (diff)
Btrfs: Fix balance panic
Mark the cloned backref_node as checked in clone_backref_node() Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/relocation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 1f5556acb53..0825e4ed944 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -1157,6 +1157,7 @@ static int clone_backref_node(struct btrfs_trans_handle *trans,
new_node->bytenr = dest->node->start;
new_node->level = node->level;
new_node->lowest = node->lowest;
+ new_node->checked = 1;
new_node->root = dest;
if (!node->lowest) {