summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-08-08 13:45:38 +0800
committerDavid Sterba <dsterba@suse.com>2022-09-26 12:27:55 +0200
commit15b88f6d24f29fb6b24e8b92875a0ee7ba00b80e (patch)
tree3f2bae8d5d5a10610aede69921ebaa1a1a968185 /tools/perf/scripts/python/stackcollapse.py
parent1dfa500511d07ae2327780e467b56f389f3e38a1 (diff)
btrfs: scrub: factor out initialization of scrub_block into helper
Although there are only two callers, we are going to add some members for scrub_block in the incoming patches. Factoring out the initialization code will make later expansion easier. One thing to note is, even scrub_handle_errored_block() doesn't utilize scrub_block::refs, we still use alloc_scrub_block() to initialize sblock::ref, allowing us to use scrub_block_put() to do cleanup. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions