Skip to content

btrfs: optimize btree insertions and some cleanups

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: allow generic_bin_search() to take low boundary as an argumentfs/btrfs/ctree.c+23 -200 replies
2/6btrfs: try to unlock parent nodes earlier when inserting a keyfs/btrfs/ctree.c+118 -190 replies
3/6btrfs: remove useless condition check before splitting leaffs/btrfs/ctree.c+1 -50 replies
4/6btrfs: move leaf search logic out of btrfs_search_slot()fs/btrfs/ctree.c+128 -1160 replies
5/6btrfs: remove BUG_ON() after splitting leaffs/btrfs/ctree.c+3 -10 replies
6/6btrfs: remove stale comment about locking at btrfs_search_slot()fs/btrfs/ctree.c+0 -40 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef Bacik
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] btrfs: optimize btree insertions and some cleanups

From: Filipe Manana <[email protected]>

This patchset optimizes btree insertions to allow better parallelism, by having insertions unlocking upper level nodes sooner and avoid blocking other tasks, or reduce the time they are blocked, that want to use the same nodes. The optimization is in patch 2/6, patch 1/6 is preparation for it, and the rest are just cleanups or removing stale code and comments.

Filipe Manana (6):
btrfs: allow generic_bin_search() to take low boundary as an argument
btrfs: try to unlock parent nodes earlier when inserting a key
btrfs: remove useless condition check before splitting leaf
btrfs: move leaf search logic out of btrfs_search_slot()
btrfs: remove BUG_ON() after splitting leaf
btrfs: remove stale comment about locking at btrfs_search_slot()

 fs/btrfs/ctree.c | 254 +++++++++++++++++++++++++++++++++--------------
 1 file changed, 181 insertions(+), 73 deletions(-)
Signature · 1 line
2.33.0