From: Filipe Manana Date: Wed, 27 Aug 2025 11:03:52 +0000 (+0100) Subject: btrfs: stop setting log_root_tree->log_root to NULL in btrfs_recover_log_trees() X-Git-Tag: v6.18-rc1~204^2~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b7699f406225ce13afc6cbb320d4b84e9c8fe0f;p=thirdparty%2Fkernel%2Fstable.git 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index dee306101d8e7..ab2f6bab096b8 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -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);