From: liubo Date: Mon, 7 Mar 2011 02:13:14 +0000 (+0000) Subject: Btrfs: fix OOPS of empty filesystem after balance X-Git-Tag: v2.6.39-rc1~19^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c59021f846881a957ac5afe456d0f59d6a517b61;p=pandora-kernel.git Btrfs: fix OOPS of empty filesystem after balance btrfs will remove unused block groups after balance. When a empty filesystem is balanced, the block group with tag "DATA" may be dropped, and after umount and mount again, it will not find "DATA" space_info and lead to OOPS. So we initial the necessary space_infos(DATA, SYSTEM, METADATA) to avoid OOPS. Reported-by: Daniel J Blueman Signed-off-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed