]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: remove variable to track trimmed bytes at btrfs_finish_extent_commit()
authorFilipe Manana <fdmanana@suse.com>
Tue, 22 Apr 2025 14:19:12 +0000 (15:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:52 +0000 (14:30 +0200)
commit93ef6c232a1a9343469672dbd9761117ba9c5bd2
tree9d0f61ea220b229cd75cf1a32056e4f40b1b19ed
parent25983713922494cbf823689bf4847cea3f841935
btrfs: remove variable to track trimmed bytes at btrfs_finish_extent_commit()

We don't need to keep track of discarded (trimmed) bytes at
btrfs_finish_extent_commit() but we are declaring a local variable for
that and passing a reference to the btrfs_discard_extent() calls when we
are processing delete block groups. So instead pass NULL to
btrfs_discard_extent() and remove that variable.

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/extent-tree.c