diff options
| author | Qu Wenruo <wqu@suse.com> | 2021-05-27 20:33:22 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2021-10-26 19:07:58 +0200 |
| commit | 7b508037d4cac3bcde7187b70170caf81cae3aad (patch) | |
| tree | 397f0144b9300ba03304bd390a175a9e7bfaf88e /tools/perf/scripts/python/bin | |
| parent | btrfs: defrag: introduce helper to defrag one cluster (diff) | |
| download | linux-7b508037d4cac3bcde7187b70170caf81cae3aad.tar.gz linux-7b508037d4cac3bcde7187b70170caf81cae3aad.zip | |
btrfs: defrag: use defrag_one_cluster() to implement btrfs_defrag_file()
The function defrag_one_cluster() is able to defrag one range well
enough, we only need to do preparation for it, including:
- Clamp and align the defrag range
- Exclude invalid cases
- Proper inode locking
The old infrastructures will not be removed in this patch, as it would
be too noisy to review.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
