aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-05-29 14:47:24 +0000
committerDavid Sterba <[email protected]>2025-07-21 21:53:29 +0000
commit0ef4c6120e253f3c7ea2308527a94bc3312f8fa9 (patch)
treebf924776c7b1e80714a2716bb1a4cb1aeb1c1bbe /fs/btrfs/tree-log.c
parentbtrfs: assert we join log transaction at btrfs_del_inode_ref_in_log() (diff)
downloadkernel-0ef4c6120e253f3c7ea2308527a94bc3312f8fa9.tar.gz
kernel-0ef4c6120e253f3c7ea2308527a94bc3312f8fa9.zip
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 <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions