]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: open code inexact rbtree search in tree_search
authorDavid Sterba <dsterba@suse.com>
Thu, 25 Jun 2020 16:35:24 +0000 (18:35 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:35 +0000 (17:45 +0200)
commit36c5f7d3978e89f85cfea2c6802bac0f7e1027b9
tree304ae04425d2f88bf882eccae9fe8022d2034892
parent95ccc595e7e7ab36fe941bb15e456b7f231d790a
btrfs: open code inexact rbtree search in tree_search

The call chain from

tree_search
  tree_search_for_insert
    __etree_search

can be open coded and allow further simplifications, here we need a tree
search with fallback to the next node in case it's not found. This is
represented as __etree_search parameters next_ret=valid, prev_ret=NULL.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c