Btrfs: make sure we cleanup all reloc roots if error happens
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 11 Dec 2013 11:29:52 +0000 (19:29 +0800)
committerChris Mason <clm@fb.com>
Thu, 12 Dec 2013 15:12:51 +0000 (07:12 -0800)
commit467bb1d27c0b783b73e6349304c0d90b5b4f431b
tree0c425a7f15c52b005cf3265af284cec5597d0a78
parent6646374863508e24da7c7d21527f8dadc8687ff9
Btrfs: make sure we cleanup all reloc roots if error happens

I hit an oops when merging reloc roots fails, the reason is that
new reloc roots may be added and we should make sure we cleanup
all reloc roots.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/relocation.c