diff options
| author | Qu Wenruo <[email protected]> | 2021-08-06 16:12:37 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-10-26 19:07:13 +0200 |
| commit | 22b398eeeed43d51e85b1008e51bf9663ac1f491 (patch) | |
| tree | 7b1649ba233ef0dec6c9a590a77659f4faed198a /tools/perf/scripts/python | |
| parent | eb793cf857828dbb1f21bfe405e5e493fdceae6c (diff) | |
btrfs: defrag: introduce helper to defrag a contiguous prepared range
A new helper, defrag_one_locked_target(), introduced to do the real part
of defrag.
The caller needs to ensure both page and extents bits are locked, and no
ordered extent exists for the range, and all writeback is finished.
The core defrag part is pretty straight-forward:
- Reserve space
- Set extent bits to defrag
- Update involved pages to be dirty
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions