diff options
| author | David Sterba <dsterba@suse.com> | 2026-04-14 23:12:31 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-06-08 15:53:28 +0200 |
| commit | b1db292ee340750f109aa7486b24ae2bd6348af5 (patch) | |
| tree | 21b4458b9fcec36181427700d10685e48e5a5a2a /tools/perf/scripts/python/flamegraph.py | |
| parent | 37f1f51fba1a4320149b1ea3b21d254d4b221b0a (diff) | |
btrfs: convert ioctl handlers to AUTO_KFREE
Many ioctl handlers are suitable for the AUTO_KFREE conversions as the
data are temporary and short lived. The conversions are trivial or the
collateral changes are straightforward.
A kfree() preceding mnt_drop_write_file() is slightly more efficient but
in the reverse order (i.e. the automatic kfree) does not cause any
significant change as the write drop does only a few simple operations.
Note: __free() handles also error pointers, so this is safe for the
memdup_user() errors too.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
