summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_map.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2011-11-11 05:45:05 +0400
committerChris Mason <chris.mason@oracle.com>2011-11-11 05:45:05 +0400
commit76b9e23d25d5c99f994bee3172de39492e452e93 (patch)
tree458af244546eb4a131944d2b3a922f027ea15d54 /fs/btrfs/extent_map.h
parent61b520a9d0083b9b361638e456af45fd75150c87 (diff)
downloadlinux-76b9e23d25d5c99f994bee3172de39492e452e93.tar.xz
Btrfs: fix orphan backref nodes
If the root node of a fs/file tree is in the block group that is being relocated, but the others are not in the other block groups. when we create a snapshot for this tree between the relocation tree creation ends and ->create_reloc_tree is set to 0, Btrfs will create some backref nodes that are the lowest nodes of the backrefs cache. But we forget to add them into ->leaves list of the backref cache and deal with them, and at last, they will triggered BUG_ON(). kernel BUG at fs/btrfs/relocation.c:239! This patch fixes it by adding them into ->leaves list of backref cache. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
0 files changed, 0 insertions, 0 deletions