All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] Extent tree search cleanups
@ 2022-06-08 16:43 David Sterba
  2022-06-08 16:43 ` [PATCH 1/9] btrfs: open code rbtree search into split_state David Sterba
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: David Sterba @ 2022-06-08 16:43 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

The extent_io_tree search helpers take return parameters and many
callers pass just NULL, which are checked and add a conditionals to some
paths. Reorganize helpers to suit what callers need and drop unnecessary
parameters, open code rbtree search loops and clean up some other
parameters.

This could improve performance in some cases but it's mostly micro
optimizations and I haven't done any measurements.

David Sterba (9):
  btrfs: open code rbtree search into split_state
  btrfs: open code rbtree search in insert_state
  btrfs: lift start and end parameters to callers of insert_state
  btrfs: pass bits by value not pointer for extent_state helpers
  btrfs: add fast path for extent_state insertion
  btrfs: remove node and parent parameters from insert_state
  btrfs: open code inexact rbtree search in tree_search
  btrfs: make tree search for insert more generic and use it for
    tree_search
  btrfs: unify tree search helper returning prev and next nodes

 fs/btrfs/ctree.h     |   4 +-
 fs/btrfs/extent_io.c | 316 +++++++++++++++++++++++--------------------
 fs/btrfs/inode.c     |  24 ++--
 3 files changed, 183 insertions(+), 161 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-06-17 14:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-08 16:43 [PATCH 0/9] Extent tree search cleanups David Sterba
2022-06-08 16:43 ` [PATCH 1/9] btrfs: open code rbtree search into split_state David Sterba
2022-06-08 16:43 ` [PATCH 2/9] btrfs: open code rbtree search in insert_state David Sterba
2022-06-08 16:43 ` [PATCH 3/9] btrfs: lift start and end parameters to callers of insert_state David Sterba
2022-06-15 14:17   ` Nikolay Borisov
2022-06-17 13:10     ` David Sterba
2022-06-08 16:43 ` [PATCH 4/9] btrfs: pass bits by value not pointer for extent_state helpers David Sterba
2022-06-08 16:43 ` [PATCH 5/9] btrfs: add fast path for extent_state insertion David Sterba
2022-06-15 14:19   ` Nikolay Borisov
2022-06-17 13:55     ` David Sterba
2022-06-08 16:43 ` [PATCH 6/9] btrfs: remove node and parent parameters from insert_state David Sterba
2022-06-08 16:43 ` [PATCH 7/9] btrfs: open code inexact rbtree search in tree_search David Sterba
2022-06-08 16:43 ` [PATCH 8/9] btrfs: make tree search for insert more generic and use it for tree_search David Sterba
2022-06-08 16:43 ` [PATCH 9/9] btrfs: unify tree search helper returning prev and next nodes David Sterba
2022-06-16  9:51   ` Nikolay Borisov
2022-06-17 14:01     ` David Sterba
2022-06-15 11:19 ` [PATCH 0/9] Extent tree search cleanups David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.