]> 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)
commitccb8acf2b648385a3f90c44f578b2b67a5656034
tree304ae04425d2f88bf882eccae9fe8022d2034892
parentb813c80e2c09e557dff95637f72669c96ae0c045
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