]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
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

index dee306101d8e772c673a2aa5bb59a2ca89027d1b..ab2f6bab096b87a38c8b4b9ef8192ef9aee252c3 100644 (file)
@@ -7585,7 +7585,6 @@ next:
        if (ret)
                return ret;
 
-       log_root_tree->log_root = NULL;
        clear_bit(BTRFS_FS_LOG_RECOVERING, &fs_info->flags);
        btrfs_put_root(log_root_tree);