aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2022-05-31 16:06:39 +0100
committerDavid Sterba <[email protected]>2022-07-25 17:44:35 +0200
commita176affe547ce852ebd458ac48a4c5764ad06441 (patch)
tree56055491a532eb6e44db6062d688f49090c8f8dd /tools/perf/scripts/python
parent4bd02d901212359438db735e79dbb45c054a91d4 (diff)
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 <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions