diff options
author | Filipe Manana <[email protected]> | 2024-09-24 17:50:34 +0100 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-11-11 14:34:13 +0100 |
commit | 287d1cf303dc1521de531b63f4123ba9f5b792dc (patch) | |
tree | 94444639e99d5153d4438f105496493ff347993c | |
parent | db58e152a2bef43fa928fb714ef9e708dd2f8835 (diff) |
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 <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
-rw-r--r-- | fs/btrfs/qgroup.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) { |