]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: remove pointless initialization at btrfs_qgroup_trace_extent()
authorFilipe Manana <fdmanana@suse.com>
Tue, 24 Sep 2024 16:50:34 +0000 (17:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:13 +0000 (14:34 +0100)
The qgroup record was allocated with kzalloc(), so it's pointless to set
its old_roots member to NULL. Remove the assignment.

Reviewed-by: Qu Wenruo <wqu@suse.com>
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/qgroup.c

index f7b05c7ee4284df681cd1818c1e3fc61ed50fea6..8773f989c3be24734933462b1c2cd7a5ef585a98 100644 (file)
@@ -2156,7 +2156,6 @@ int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr,
        }
 
        record->num_bytes = num_bytes;
-       record->old_roots = NULL;
 
        ret = btrfs_qgroup_trace_extent_nolock(fs_info, delayed_refs, record, bytenr);
        if (ret) {