path: root/check/mode-common.h
diff options
authorSu Yue <>2018-05-08 16:30:01 +0800
committerDavid Sterba <>2018-06-07 16:37:30 +0200
commit4e320db9dd6885ad3f6264cf2595f0242d6893f8 (patch)
tree5dcf3e108cdc9b53eb4920660fd37fbe5b54d9ee /check/mode-common.h
parente99f3775413cccf51ebf2d48e26cedc34226c293 (diff)
btrfs-progs: check: lowmem: introduce avoid_extents_overwrite
Declare a global u64 variable last_allocated_chunk records start of the last chunk allocated by lowmem repair. Although global variable is not nice, it simplifies the code a lot. avoid_extents_overwrite() prefers to allocate a new chunk first. If it failed because of no space or wrong used bytes (like in fsck-tests/004), then it tries to exclude metadata blocks which costs a lot of time in large filesystems. Signed-off-by: Su Yue <> Signed-off-by: David Sterba <>
Diffstat (limited to 'check/mode-common.h')
0 files changed, 0 insertions, 0 deletions