summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2014-09-03 17:35:37 +0400
committerChris Mason <clm@fb.com>2014-09-18 00:38:37 +0400
commit1c1161870c8bcb0d966ebbf1aec05a87a79a4175 (patch)
treeaf397f11a4cf07440999efb3ccac8d435346b619 /fs/btrfs/dev-replace.c
parent43530c46cc55cf5a381e788276a93c83cbc95e46 (diff)
downloadlinux-1c1161870c8bcb0d966ebbf1aec05a87a79a4175.tar.xz
Btrfs: update free_chunk_space during allocting a new chunk
We should update free_chunk_space in time when we allocate a new chunk, not when we deal with the pending device update and block group insertion, because we need the real free_chunk_space data to calculate the reserved space, if we don't update it in time, we would consider the disk space which has be allocated as free space, and would use it to do overcommit reservation. Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions