]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: BTRFS_PATH_AUTO_FREE in orphan.c
authorLeo Martins <loemra.dev@gmail.com>
Tue, 3 Sep 2024 18:19:07 +0000 (11:19 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 10 Sep 2024 14:51:22 +0000 (16:51 +0200)
commit68f32b9c98522b9689e82627abeb5c10b3501915
tree1fc5dce6166045a0c7c190e3e96fc46fdcf71113
parent45763a0cbb91ba3a5db928c376c3b0bba3ce9b45
btrfs: BTRFS_PATH_AUTO_FREE in orphan.c

All cleanup paths lead to btrfs_path_free so path can be defined with
the automatic freeing callback in the following functions:

- btrfs_insert_orphan_item()
- btrfs_del_orphan_item()

Signed-off-by: Leo Martins <loemra.dev@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/orphan.c