summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-24 17:18:21 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-28 19:07:31 +0300
commitcd7f9699b113434467434580ebb8d9b328152fb8 (patch)
treed6d83d5db46512a305142ca5fb401555886dbe9e /tools/perf/scripts/python/export-to-sqlite.py
parent70d640004ab5c2597084f6463dd39b36f4f026f8 (diff)
downloadlinux-cd7f9699b113434467434580ebb8d9b328152fb8.tar.xz
btrfs: Open-code add_delayed_data_ref
Now that the initialization part and the critical section code have been split it's a lot easier to open code add_delayed_data_ref. Do so in the following manner: 1. The common init function is put immediately after memory-to-be-initialized is allocated, followed by the specific data ref initialization. 2. The only piece of code that remains in the critical section is insert_delayed_ref call. 3. Tracing and memory freeing code is moved outside of the critical section. No functional changes, just an overall shorter critical section. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions