]> Gentwo Git Trees - linux/.git/commit
btrfs: simplify inline extent end calculation at replay_one_extent()
authorFilipe Manana <fdmanana@suse.com>
Thu, 18 Sep 2025 12:29:16 +0000 (13:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:24 +0000 (08:49 +0200)
commitb7ff7b0d76e5478c319ab2066b287e156968231f
tree97a9283a6b240ec0bd18c2b76ab494413d5b0fd2
parenta35b3dd59bf6fe2bf3c2777bdde623d722caa68c
btrfs: simplify inline extent end calculation at replay_one_extent()

There is no need to store the extent's ram_bytes in two variables,
further more one of them, named 'size', is used only for the extent's end
offset calculation. So remove the 'size' variable and use 'nbytes' only.

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