diff options
| author | Filipe Manana <[email protected]> | 2022-05-31 16:06:34 +0100 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-07-25 17:44:35 +0200 |
| commit | 6fe81a3a3ac823e4be715c87657b9894d809fa95 (patch) | |
| tree | a75f036be4114bdd535aca7baba1428228e9ca51 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 814e77182b883702de7ce19854bbffae9cd4756b (diff) | |
btrfs: balance btree dirty pages and delayed items after clone and dedupe
When reflinking extents (clone and deduplication), we need to touch the
btree of the destination inode's subvolume, as well as potentially
create a delayed inode for the destination inode (if it was not created
before). However we are neither balancing the btree dirty pages nor the
delayed items after such operations, so if we have a task that is doing
a long series of clone or deduplication operations, it can result in
accumulation of too many btree dirty pages and delayed items.
So just call btrfs_btree_balance_dirty() after clone and deduplication,
just like we do for every other system call that results on modifying a
btree and adding delayed items.
Reviewed-by: Anand Jain <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions