]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove duplicated root key setup in btrfs_create_tree()
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Dec 2025 18:36:32 +0000 (18:36 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:49:10 +0000 (07:49 +0100)
commit3d47c0c8b57073b1389dd9c53291d81eb8951e18
treecdeb1d6057801c8f5734b9058371563a34718752
parent4273db18a84ea3042b67864939e69b79eca50235
btrfs: remove duplicated root key setup in btrfs_create_tree()

There's no need for an on stack key to define the root's key as we have
already defined the key in the root itself. So remove the stack variable
and use the key in the root.

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/disk-io.c