]> www.infradead.org Git - users/willy/linux.git/commit
btrfs: remove local generation variable from read_block_for_search()
authorFilipe Manana <fdmanana@suse.com>
Wed, 16 Oct 2024 10:13:24 +0000 (11:13 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:18 +0000 (14:34 +0100)
commit4b5c1200f78ed40e7f1d6f05a6b00a04cd39cc7a
tree4ddc3d2c30831b6b992818efcdd45cb57e5fd6eb
parentb8e63ea4058da6719c2c89cdf383167aa120e904
btrfs: remove local generation variable from read_block_for_search()

It's redundant to have the 'gen' variable since we already have the same
value in the local btrfs_tree_parent_check structure. So remove it and
instead use the structure's field.

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/ctree.c