mbox series

[0/8] Minor cleanups in relocation.c

Message ID cover.1695380646.git.dsterba@suse.com (mailing list archive)
Headers show
Series Minor cleanups in relocation.c | expand

Message

David Sterba Sept. 22, 2023, 11:07 a.m. UTC
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(-)