]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: stop setting log_root_tree->log_root to NULL in btrfs_recover_log_trees()
authorFilipe Manana <fdmanana@suse.com>
Wed, 27 Aug 2025 11:03:52 +0000 (12:03 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:18 +0000 (08:49 +0200)
commit4b7699f406225ce13afc6cbb320d4b84e9c8fe0f
tree4c811fc934b8fb14f00805ec7dd9c4d189a93b60
parentd73896a55c047d0e7269128346f163a8efc908aa
btrfs: stop setting log_root_tree->log_root to NULL in btrfs_recover_log_trees()

There's no point in setting log_root_tree->log_root to NULL as this is
already NULL, we never assigned anything to it before and it's meaningless
as a log root never has a value other than NULL for the ->log_root field,
that can be not NULL only for non log roots.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c