diff options
author | Su Yue <suy.fnst@cn.fujitsu.com> | 2018-05-08 16:30:00 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:30 +0200 |
commit | e99f3775413cccf51ebf2d48e26cedc34226c293 (patch) | |
tree | 3db3eb1b741bfbca3838dd3ef75cc47670846372 /check/mode-common.h | |
parent | 8586c84e8ebd0f3a173db4b00752e3223a4ea917 (diff) |
btrfs-progs: check: lowmem: introduce try_force_cow_in_new_chunk
Introduce create_chunk_and_block_block_group() to allocate a new chunk
and corresponding block group.
The new function force_cow_in_new_chunk() firstly allocates new chunk
and records its start.
Then it modifies all metadata block groups cached and full.
Finally it marks the new block group uncached and unfree.
In the next COW, extents states will be updated automatically by
cache_block_group().
New function try_to_force_cow_in_new_chunk() will try to mark block
groups full, allocate a new chunk and records the start.
If the last allocated chunk is almost full, a new chunk will be
allocated.
Suggested-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'check/mode-common.h')
0 files changed, 0 insertions, 0 deletions