diff options
author | Shaohua Li <shli@fb.com> | 2015-01-09 10:40:15 -0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-02-02 19:25:20 -0800 |
commit | 2f0810880f082fa8ba66ab2c33b02e4ff9770a5e (patch) | |
tree | d6c4885a3890158235431db66fe625604b239974 /fs/btrfs/free-space-cache.c | |
parent | 289454ad26a2d752e04b07234a175feda9ec0f4e (diff) | |
download | linux-2f0810880f082fa8ba66ab2c33b02e4ff9770a5e.tar.bz2 |
btrfs: delete chunk allocation attemp when setting block group ro
Below test will fail currently:
mkfs.ext4 -F /dev/sda
btrfs-convert /dev/sda
mount /dev/sda /mnt
btrfs device add -f /dev/sdb /mnt
btrfs balance start -v -dconvert=raid1 -mconvert=raid1 /mnt
The reason is there are some block groups with usage 0, but the whole
disk hasn't free space to allocate new chunk, so we even can't set such
block group readonly. This patch deletes the chunk allocation when
setting block group ro. For META, we already have reserve. But for
SYSTEM, we don't have, so the check_system_chunk is still required.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
0 files changed, 0 insertions, 0 deletions