From: Filipe Manana Date: Tue, 24 Sep 2024 16:50:34 +0000 (+0100) Subject: btrfs: remove pointless initialization at btrfs_qgroup_trace_extent() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=287d1cf303dc1521de531b63f4123ba9f5b792dc;p=users%2Fwilly%2Fxarray.git btrfs: remove pointless initialization at btrfs_qgroup_trace_extent() 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 Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index f7b05c7ee428..8773f989c3be 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -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) {