summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-29 15:47:24 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:53:29 +0200
commit0ef4c6120e253f3c7ea2308527a94bc3312f8fa9 (patch)
treebf924776c7b1e80714a2716bb1a4cb1aeb1c1bbe /tools/perf/scripts/python/gecko.py
parentd94edb0d7e38e520174c0846afa5337319c1ac5f (diff)
btrfs: free path sooner at __btrfs_unlink_inode()
After calling btrfs_delete_one_dir_name() there's no need for the path anymore so we can free it immediately after. After that point we do some btree operations that take time and in those call chains we end up allocating paths for these operations, so we're unnecessarily holding on to the path we allocated early at __btrfs_unlink_inode(). So free the path as soon as we don't need it and add a comment. This also allows to simplify the error path, removing two exit labels and returning directly when an error happens. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions