diff options
author | Nikolay Borisov <[email protected]> | 2018-12-17 10:35:59 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-02-25 14:13:22 +0100 |
commit | 694c12ed9dcb07ad1adc5a525cc0d8ea4d71734f (patch) | |
tree | 886fb9715981ee491d7c849fcb7148ea3c89c8a7 /tools/perf/scripts/python/sched-migration.py | |
parent | 500710d3b8721250e3e16796e176f57417e72492 (diff) |
btrfs: Rename found_type to extent_type in btrfs_get_extent
found_type really holds the type of extent and is guaranteed to to have
a value between [0, 2]. The only time it can contain anything different
is if btrfs_lookup_file_extent returned a positive value and the
previous item is different than an extent. Avoid this situation by
simply checking found_key.type rather than assigning the item type to
found_type intermittently. Also make the variable an u8 to reduce stack
usage. No functional changes.
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Nikolay Borisov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions