mbox series

[00/18] btrfs-progs: more prep work for syncing ctree.c

Message ID cover.1681939316.git.josef@toxicpanda.com (mailing list archive)
Headers show
Series btrfs-progs: more prep work for syncing ctree.c | expand

Message

Josef Bacik April 19, 2023, 9:23 p.m. UTC
Hello,

These are a bunch of changes that sync various api and structure differences
that exist between btrfs-progs and the kernel.  Most of these are small, but the
last patch is sync'ing tree-checker.[ch].  This was mostly left intact, however
there's a slight change to disable some of the checking for tools like fsck or
btrfs-image.

This series depends on
	btrfs-progs: prep work for syncing files into kernel-shared
	btrfs-progs: sync basic code from the kernel
	btrfs-progs: prep work for syncing ctree.c

Thanks,

Josef

Josef Bacik (18):
  btrfs-progs: sync and stub-out tree-mod-log.h
  btrfs-progs: add btrfs_root_id helper
  btrfs-progs: remove root argument from free_extent and inc_extent_ref
  btrfs-progs: pass root_id for btrfs_free_tree_block
  btrfs-progs: add a free_extent_buffer_stale helper
  btrfs-progs: add btrfs_is_testing helper
  btrfs-progs: add accounting_lock to btrfs_root
  btrfs-progs: update read_tree_block to match the kernel definition
  btrfs-progs: make reada_for_search static
  btrfs-progs: sync btrfs_path fields with the kernel
  btrfs-progs: update arguments of find_extent_buffer
  btrfs-progs: add btrfs_readahead_node_child helper
  btrfs-progs: add an atomic arg to btrfs_buffer_uptodate
  btrfs-progs: add a btrfs_read_extent_buffer helper
  btrfs-progs: add BTRFS_STRIPE_LEN_SHIFT definition
  btrfs-progs: rename btrfs_check_* to __btrfs_check_*
  btrfs-progs: change btrfs_check_chunk_valid to match the kernel
    version
  btrfs-progs: sync tree-checker.[ch]

 Makefile                         |    1 +
 btrfs-corrupt-block.c            |    8 +-
 btrfs-find-root.c                |    2 +-
 check/clear-cache.c              |    5 +-
 check/main.c                     |   28 +-
 check/mode-common.c              |    4 +-
 check/mode-lowmem.c              |   31 +-
 check/qgroup-verify.c            |    3 +-
 check/repair.c                   |   13 +-
 cmds/inspect-dump-tree.c         |   12 +-
 cmds/inspect-tree-stats.c        |    4 +-
 cmds/rescue.c                    |    3 +-
 cmds/restore.c                   |   11 +-
 image/main.c                     |   25 +-
 include/kerncompat.h             |   10 +
 kernel-shared/backref.c          |    6 +-
 kernel-shared/ctree.c            |  222 +---
 kernel-shared/ctree.h            |   77 +-
 kernel-shared/disk-io.c          |   92 +-
 kernel-shared/disk-io.h          |   16 +-
 kernel-shared/extent-tree.c      |   33 +-
 kernel-shared/extent_io.c        |   26 +-
 kernel-shared/extent_io.h        |    4 +-
 kernel-shared/free-space-cache.c |    5 +-
 kernel-shared/print-tree.c       |    4 +-
 kernel-shared/tree-checker.c     | 2064 ++++++++++++++++++++++++++++++
 kernel-shared/tree-checker.h     |   72 ++
 kernel-shared/tree-mod-log.h     |   96 ++
 kernel-shared/volumes.c          |  136 +-
 kernel-shared/volumes.h          |    5 +-
 tune/change-uuid.c               |    2 +-
 31 files changed, 2521 insertions(+), 499 deletions(-)
 create mode 100644 kernel-shared/tree-checker.c
 create mode 100644 kernel-shared/tree-checker.h
 create mode 100644 kernel-shared/tree-mod-log.h