]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit891205ad70c61eb70761c3c70980db845a9ab189
tree0c425a7f15c52b005cf3265af284cec5597d0a78
parentb460878e50d7191fb859c9869225aa44037107f0
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