summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2022-05-31 16:06:39 +0100
committerDavid Sterba <dsterba@suse.com>2022-07-25 17:44:35 +0200
commita176affe547ce852ebd458ac48a4c5764ad06441 (patch)
tree56055491a532eb6e44db6062d688f49090c8f8dd /tools/perf/scripts/python/export-to-postgresql.py
parent4bd02d901212359438db735e79dbb45c054a91d4 (diff)
downloadlinux-a176affe547ce852ebd458ac48a4c5764ad06441.tar.gz
linux-a176affe547ce852ebd458ac48a4c5764ad06441.zip
btrfs: assert that delayed item is a dir index item when adding it
All delayed items are for dir index items, we don't support any other item types at the moment. So simplify __btrfs_add_delayed_item() and add an assertion for checking the item's key type. This also allows the next change to be simpler and avoid to check key types. In case we add support for different item types in the future, then we'll hit the assertion during development and be able to adjust any code that is assuming delayed items are always associated to dir index items. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions