There's no need to release the path in the if branch used when the root
does not exists since we released the path before the call to
btrfs_get_fs_root(). So remove that redundant btrfs_release_path() call.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
} else if (ret == -ENOENT) {
struct btrfs_trans_handle *trans;
- btrfs_release_path(path);
-
trans = btrfs_join_transaction(tree_root);
if (IS_ERR(trans)) {
ret = PTR_ERR(trans);