summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@linux.intel.com>2011-02-14 22:00:03 +0100
committerChris Mason <chris.mason@oracle.com>2011-02-14 22:00:03 +0100
commit6848ad6461e551849ba3c32d945d4f45e96453a6 (patch)
tree86ab53a68e0b3181594808b43ef9fec333ea61f2 /fs/btrfs/relocation.c
parentBtrfs: don't release pages when we can't clear the uptodate bits (diff)
downloadlinux-6848ad6461e551849ba3c32d945d4f45e96453a6.tar.xz
linux-6848ad6461e551849ba3c32d945d4f45e96453a6.zip
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 '')
-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 1f5556acb530..0825e4ed9447 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) {