Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit c65967ac authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

btrfs: remove superfluous metadata check at btrfs_lookup_extent_info()


If we didn't found an extent item with the initial btrfs_search_slot()
call, it's pointless to test if the "metadata" variable is "true", because
right after we check if the key type is BTRFS_METADATA_ITEM_KEY and that
is the case only when "metadata" is set to "true". So remove the redundant
check.

Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent b56329a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment