diff options
author | Josef Bacik <[email protected]> | 2023-04-29 16:07:12 -0400 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-06-19 13:59:24 +0200 |
commit | 85d8a826c7cde17f9cca9c4debecb4538bdb6573 (patch) | |
tree | 78aa5bbb7c9d9fdd78417fdfb8636f2c2fad3a75 /scripts/generate_rust_analyzer.py | |
parent | 4aec05fa5a190d641664c2bca8ad270cf8190b8c (diff) |
btrfs: simplify btrfs_check_leaf_* helpers into a single helper
We have two helpers for checking leaves, because we have an extra check
for debugging in btrfs_mark_buffer_dirty(), and at that stage we may
have item data that isn't consistent yet. However we can handle this
case internally in the helper, if BTRFS_HEADER_FLAG_WRITTEN is set we
know the buffer should be internally consistent, otherwise we need to
skip checking the item data.
Simplify this helper down a single helper and handle the item data
checking logic internally to the helper.
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions