Skip to content

Minor cleanups in relocation.c

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8btrfs: relocation: use more natural types for tree_block bitfieldsfs/btrfs/relocation.c+4 -42 replies
2/8btrfs: relocation: use enum for stagesfs/btrfs/relocation.c+9 -73 replies
3/8btrfs: relocation: switch bitfields to bool in reloc_controlfs/btrfs/relocation.c+9 -92 replies
4/8btrfs: relocation: open code mapping_tree_initfs/btrfs/relocation.c+2 -82 replies
5/8btrfs: switch btrfs_backref_cache::is_reloc to boolfs/btrfs/backref.c fs/btrfs/backref.h fs/btrfs/relocation.c+4 -42 replies
6/8btrfs: relocation: return bool from btrfs_should_ignore_reloc_rootfs/btrfs/relocation.c fs/btrfs/relocation.h+10 -113 replies
7/8btrfs: relocation: use on-stack iterator in build_backref_treefs/btrfs/backref.c fs/btrfs/backref.h fs/btrfs/relocation.c+18 -315 replies
8/8btrfs: relocation: constify parameters where possiblefs/btrfs/relocation.c fs/btrfs/relocation.h+33 -321 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchJohannes ThumshirnQu Wenruo
1/8R-b R-b
2/8R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b
8/8R-b

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/8] Minor cleanups in relocation.c

Various type cleanups in relocation.c, on-stack variable to replace frequent allocation in build_backref_tree().

David Sterba (8):
btrfs: relocation: use more natural types for tree_block bitfields
btrfs: relocation: use enum for stages
btrfs: relocation: switch bitfields to bool in reloc_control
btrfs: relocation: open code mapping_tree_init
btrfs: switch btrfs_backref_cache::is_reloc to bool
btrfs: relocation: return bool from btrfs_should_ignore_reloc_root
btrfs: relocation: use on-stack iterator in build_backref_tree
btrfs: relocation: constify parameters where possible

 fs/btrfs/backref.c    |  28 ++++-----
 fs/btrfs/backref.h    |  15 ++---
 fs/btrfs/relocation.c | 139 ++++++++++++++++++++----------------------
 fs/btrfs/relocation.h |   9 +--
 4 files changed, 87 insertions(+), 104 deletions(-)
Signature · 1 line
2.41.0