Skip to content

reduce boilerplate code within btrfs

Roger L. Beckermeyer III linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 9 repliesIn review
  2. v11 of 6 patches 0 repliesSuperseded

changelog from the cover letter

updated if() statements to utilize newer error checking resolved lock error on 0002
edited title of patches to utilize update instead of edit added Acked-by from Peter Zijlstra to 0001 eliminated extra variables throughout the patch series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6rbtree: add rb_find_add_cached() to rbtree.hinclude/linux/rbtree.h+37 -00 replies
2/6btrfs: update btrfs_add_block_group_cache() to use rb helperfs/btrfs/block-group.c+18 -232 replies
3/6btrfs: update prelim_ref_insert() to use rb helpersfs/btrfs/backref.c+36 -350 replies
4/6btrfs: update __btrfs_add_delayed_item() to use rb helperfs/btrfs/delayed-inode.c+16 -240 replies
5/6btrfs: update btrfs_add_chunk_map() to use rb helpersfs/btrfs/volumes.c+18 -210 replies
6/6btrfs: update tree_insert() to use rb helpersfs/btrfs/delayed-ref.c+16 -230 replies

Reviews trailers per patch

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

PatchPeter Zijlstra (Intel)Qu Wenruo
SeriesR-b
1/6A-b
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 v2 thread

Cover letter [PATCH v2 0/6] reduce boilerplate code within btrfs

The goal of this patch series is to reduce boilerplate code within btrfs. To accomplish this rb_find_add_cached() was added to linux/include/rbtree.h. Any replaceable functions were then replaced within btrfs.

changelog:
updated if() statements to utilize newer error checking resolved lock error on 0002
edited title of patches to utilize update instead of edit added Acked-by from Peter Zijlstra to 0001 eliminated extra variables throughout the patch series

Roger L. Beckermeyer III (6):
rbtree: add rb_find_add_cached() to rbtree.h
btrfs: update btrfs_add_block_group_cache() to use rb helper
btrfs: update prelim_ref_insert() to use rb helpers
btrfs: update __btrfs_add_delayed_item() to use rb helper
btrfs: update btrfs_add_chunk_map() to use rb helpers
btrfs: update tree_insert() to use rb helpers

 fs/btrfs/backref.c       | 71 ++++++++++++++++++++--------------------
 fs/btrfs/block-group.c   | 41 ++++++++++-------------
 fs/btrfs/delayed-inode.c | 40 +++++++++-------------
 fs/btrfs/delayed-ref.c   | 39 +++++++++-------------
 fs/btrfs/volumes.c       | 39 ++++++++++------------
 include/linux/rbtree.h   | 37 +++++++++++++++++++++
 6 files changed, 141 insertions(+), 126 deletions(-)
Signature · 1 line
2.45.2