]> Gentwo Git Trees - linux/.git/commit
btrfs: remove unnecessary inode key in btrfs_log_all_parents()
authorFilipe Manana <fdmanana@suse.com>
Fri, 21 Nov 2025 16:56:46 +0000 (16:56 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Nov 2025 00:53:33 +0000 (01:53 +0100)
commit9e0e6577b3e5e5cf7c1acd178eb648e8f830ba17
treea14a82de5dc19c14f11bcd9065f16eb1a6168fcf
parent1c3e03b34042c2dff15d7f262b768908e4b02537
btrfs: remove unnecessary inode key in btrfs_log_all_parents()

We are setting up an inode key to lookup parent directory inode but all we
need is the inode's objectid. The use of the key was necessary in the past
but since commit 0202e83fdab0 ("btrfs: simplify iget helpers") we only
need the objectid.

So remove the key variable in the stack and use instead a simple u64 for
the inode's objectid.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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