]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: use local key variable to pass arguments in replay_one_extent()
authorFilipe Manana <fdmanana@suse.com>
Mon, 21 Jul 2025 12:48:12 +0000 (13:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:30 +0000 (10:54 +0200)
commitcac2ab34d88e2e4aaa0991038854849a2eaff942
treef1efa99657454cc4ba98456101ac0c9805211bfd
parent575f52a77a0aa045943cca67fdf9f0388e86a5f8
btrfs: use local key variable to pass arguments in replay_one_extent()

Instead of extracting again the disk_bytenr and disk_num_bytes values from
the file extent item to pass to btrfs_qgroup_trace_extent(), use the key
local variable 'ins' which already has those values, reducing the size of
the source code.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c