Skip to content

Commit 4b7699f

Browse files
fdmananakdave
authored andcommitted
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>
1 parent d73896a commit 4b7699f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/btrfs/tree-log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7585,7 +7585,6 @@ int btrfs_recover_log_trees(struct btrfs_root *log_root_tree)
75857585
if (ret)
75867586
return ret;
75877587

7588-
log_root_tree->log_root = NULL;
75897588
clear_bit(BTRFS_FS_LOG_RECOVERING, &fs_info->flags);
75907589
btrfs_put_root(log_root_tree);
75917590

0 commit comments

Comments
 (0)