diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-09-03 15:35:37 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 22:38:37 +0200 |
commit | 1c1161870c8bcb0d966ebbf1aec05a87a79a4175 (patch) | |
tree | af397f11a4cf07440999efb3ccac8d435346b619 /fs/ocfs2/xattr.c | |
parent | Btrfs: fix unprotected device->bytes_used update (diff) | |
download | linux-1c1161870c8bcb0d966ebbf1aec05a87a79a4175.tar.xz linux-1c1161870c8bcb0d966ebbf1aec05a87a79a4175.zip |
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/ocfs2/xattr.c')
0 files changed, 0 insertions, 0 deletions