diff options
| author | Filipe Manana <[email protected]> | 2021-12-02 10:30:38 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-01-07 14:18:23 +0100 |
| commit | 109324cfda067b84b948002584849a02dd0a6641 (patch) | |
| tree | e6e4d9bf3f3b270366790886ff1a43bd0d1a68b1 /scripts/gdb/linux/modules.py | |
| parent | e5e1c1741b3de3f8d06fe4b700d83709a7da0610 (diff) | |
btrfs: move leaf search logic out of btrfs_search_slot()
There's quite a significant amount of code for doing the key search for a
leaf at btrfs_search_slot(), with a couple labels and gotos in it, plus
btrfs_search_slot() is already big enough.
So move the logic that does the key search on a leaf into a new helper
function. This makes it better organized, removing the need for the labels
and the gotos, as well as reducing the indentation level and the size of
btrfs_search_slot().
Reviewed-by: Josef Bacik <[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 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions