diff options
author | Filipe Manana <fdmanana@suse.com> | 2023-09-22 11:39:08 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-10-12 16:44:15 +0200 |
commit | 0f8ac74d41c01700dbd1240bc4de9700fb281753 (patch) | |
tree | 996f1c3bb888908735c6f49e0a0718fe3b4bc60d /tools/perf/scripts/python | |
parent | 63ffc1f7c492df977353a0d2adf01d41069aad68 (diff) |
btrfs: use extent_io_tree_release() to empty dirty log pages
When freeing a log tree, during a transaction commit, we clear its dirty
log pages io tree by calling clear_extent_bits() using a range from 0 to
(u64)-1. This will iterate the io tree's rbtree and call rb_erase() on
each node before freeing it, which will often trigger rebalance operations
on the rbtree. A better alternative it to use extent_io_tree_release(),
which will not do deletions and trigger rebalances.
So use extent_io_tree_release() instead of clear_extent_bits().
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions