]> git.dujemihanovic.xyz Git - linux.git/commit
btrfs: initialize key where it's used when running delayed data ref
authorFilipe Manana <fdmanana@suse.com>
Fri, 8 Sep 2023 17:20:27 +0000 (18:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:06 +0000 (16:44 +0200)
commit7cce0d690d4e4e3278bd4cf3fd3a168ae62a1419
treecabfcd36f8558b2dc6494dd50bc4b435ee96779a
parent1df6b3c06089dd020e31f134adb124de6e315e6a
btrfs: initialize key where it's used when running delayed data ref

At run_delayed_data_ref() we are always initializing a key but the key
is only needed and used if we are inserting a new extent. So move the
declaration and initialization of the key to 'if' branch where it's used.
Also rename the key from 'ins' to 'key', as it's a more clear name.

Reviewed-by: Josef Bacik <josef@toxicpanda.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/extent-tree.c