diff options
| author | Filipe Manana <[email protected]> | 2023-06-12 10:40:17 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-06-19 11:59:39 +0000 |
| commit | fc4026e26b3383b896af5c0923ada8ae7064ca07 (patch) | |
| tree | 0d3efef66829708739a4501e337dc666e2fb0e6f /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | btrfs: replace BUG_ON() at split_item() with proper error handling (diff) | |
| download | kernel-fc4026e26b3383b896af5c0923ada8ae7064ca07.tar.gz kernel-fc4026e26b3383b896af5c0923ada8ae7064ca07.zip | |
btrfs: do not BUG_ON() when dropping inode items from log root
When dropping inode items from a log tree at drop_inode_items(), we this
BUG_ON() on the result of btrfs_search_slot() because we don't expect an
exact match since having a key with an offset of (u64)-1 is unexpected.
That is generally true, but for dir index keys for example, we can get a
key with such an offset value, even though it's very unlikely and it would
take ages to increase the sequence counter for a dir index up to (u64)-1.
We can deal with an exact match, we just have to delete the key at that
slot, so there is really no need to BUG_ON(), error out or trigger any
warning. So remove the BUG_ON().
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
