aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2022-10-11 13:17:04 +0100
committerDavid Sterba <[email protected]>2022-12-05 18:00:39 +0100
commitb629685803bc0cefbbd29240ea28d57d8a17bcbc (patch)
treee344bf7703df90a54595612e0f9b6b3efcb8413d /tools/perf/scripts/python/bin/stackcollapse-report
parent84a7949d409753c90dc3477b8cfc18e983b09078 (diff)
btrfs: remove roots ulist when checking data extent sharedness
Currently btrfs_is_data_extent_shared() is passing a ulist for the roots argument of find_parent_nodes(), however it does not use that ulist for anything and for this context that list always ends up with at most one element. Since find_parent_nodes() is able to deal with a NULL ulist for its roots argument, make btrfs_is_data_extent_shared() pass it NULL and avoid the burden of allocating memory for the unnused roots ulist, initializing it, releasing it and allocating one struct ulist_node for it during the call to find_parent_nodes(). Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions