diff options
author | liubo <liubo2009@cn.fujitsu.com> | 2011-03-07 03:13:14 +0100 |
---|---|---|
committer | root <Chris Mason chris.mason@oracle.com> | 2011-03-28 11:37:53 +0200 |
commit | c59021f846881a957ac5afe456d0f59d6a517b61 (patch) | |
tree | 63e0552f2850b55dcc6bde31e0610e5f22046675 /fs/btrfs/file-item.c | |
parent | Btrfs: fix memory leak of empty filesystem after balance (diff) | |
download | linux-c59021f846881a957ac5afe456d0f59d6a517b61.tar.xz linux-c59021f846881a957ac5afe456d0f59d6a517b61.zip |
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 <daniel.blueman@gmail.com>
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
0 files changed, 0 insertions, 0 deletions