aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-08-27 12:03:52 +0100
committerDavid Sterba <dsterba@suse.com>2025-09-23 08:49:18 +0200
commit4b7699f406225ce13afc6cbb320d4b84e9c8fe0f (patch)
tree4c811fc934b8fb14f00805ec7dd9c4d189a93b60 /fs/btrfs/tree-log.c
parentbtrfs: stop passing transaction parameter to log tree walk functions (diff)
downloadlinux-rng-4b7699f406225ce13afc6cbb320d4b84e9c8fe0f.tar.xz
linux-rng-4b7699f406225ce13afc6cbb320d4b84e9c8fe0f.zip
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index dee306101d8e..ab2f6bab096b 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);