summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2025-10-24 13:21:43 +0300
committerDavid Sterba <dsterba@suse.com>2025-11-25 00:34:51 +0300
commit252877a8701530fde861a4f27710c1e718e97caa (patch)
tree8557fad86b7d4a9c746be6e937af39df9a841c64 /tools/perf/scripts/python/bin/stackcollapse-record
parent7ab5d01d58a766807e137cbe8c90cb2e591e2f7d (diff)
downloadlinux-252877a8701530fde861a4f27710c1e718e97caa.tar.xz
btrfs: add ASSERTs on prealloc in qgroup functions
The prealloc variable in these functions is always initialized to NULL. Whenever we allocate memory for it, if it fails then NULL is preserved, otherwise we delegate the ownership of the pointer to add_qgroup_rb() and set it right after to NULL. Since in any case the pointer ends up being NULL at the end of its usage, we can safely remove calls to kfree() for it, while adding an ASSERT as an extra check. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions