diff options
author | 2024-06-18 13:09:39 +0100 | |
---|---|---|
committer | 2024-07-11 15:33:26 +0200 | |
commit | c65967ac4d1668dfcb903215c8af128fa15f05d6 (patch) | |
tree | 9a5ad016653fc0ef11c42524c53eef6e04af411c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | btrfs: replace BUG_ON() with error handling at update_ref_for_cow() (diff) | |
download | wireguard-linux-c65967ac4d1668dfcb903215c8af128fa15f05d6.tar.xz wireguard-linux-c65967ac4d1668dfcb903215c8af128fa15f05d6.zip |
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: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions