]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use local variable for the transaction handle in replay_one_buffer()
authorFilipe Manana <fdmanana@suse.com>
Wed, 16 Jul 2025 15:22:32 +0000 (16:22 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:29 +0000 (10:54 +0200)
commit425652cf102838676d128e639ec5c2e416264007
tree8527666750ee4c1cffc2adbf1afbcee0df3bc52b
parente6dd405b6671b9753b98d8bdf76f8f0ed36c11cd
btrfs: use local variable for the transaction handle in replay_one_buffer()

Instead of keep dereferencing the walk_control structure to extract the
transaction handle whenever is needed, do it once by storing it in a local
variable and then use the variable everywhere. This reduces code verbosity
and eliminates the need for some split lines.

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