Skip to content

btrfs: various cleanups to make ctree.c sync easier

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12btrfs: move btrfs_check_trunc_cache_free_space into block-rsv.cfs/btrfs/block-rsv.c fs/btrfs/block-rsv.h fs/btrfs/free-space-cache.c +1 more+21 -211 reply
2/12btrfs: remove level argument from btrfs_set_block_flagsfs/btrfs/ctree.c fs/btrfs/extent-tree.c fs/btrfs/extent-tree.h+5 -91 reply
3/12btrfs: simplify btrfs_check_leaf_* helpers into a single helperfs/btrfs/disk-io.c fs/btrfs/tree-checker.c fs/btrfs/tree-checker.h+13 -312 replies
4/12btrfs: add btrfs_tree_block_status definitions to tree-checker.hfs/btrfs/tree-checker.h+12 -01 reply
5/12btrfs: use btrfs_tree_block_status for leaf item errorsfs/btrfs/tree-checker.c+12 -71 reply
6/12btrfs: extend btrfs_leaf_check to return btrfs_tree_block_statusfs/btrfs/tree-checker.c fs/btrfs/tree-checker.h+30 -132 replies
7/12btrfs: add __btrfs_check_node helperfs/btrfs/tree-checker.c fs/btrfs/tree-checker.h+18 -122 replies
8/12btrfs: move btrfs_verify_level_key into tree-checker.cfs/btrfs/disk-io.c fs/btrfs/disk-io.h fs/btrfs/tree-checker.c +1 more+60 -601 reply
9/12btrfs: move split_flags/combine_flags helpers to inode-item.hfs/btrfs/btrfs_inode.h fs/btrfs/inode-item.h fs/btrfs/tree-checker.c+17 -171 reply
10/12btrfs: add __KERNEL__ check for btrfs_no_printkfs/btrfs/messages.h+7 -01 reply
11/12btrfs: add a btrfs_csum_type_size helperfs/btrfs/ctree.c fs/btrfs/ctree.h+8 -11 reply
12/12btrfs: rename del_ptr -> btrfs_del_ptr and export itfs/btrfs/ctree.c fs/btrfs/ctree.h+10 -81 reply

Reviews trailers per patch

8 of 12 patches have a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12
7/12
8/12R-b
9/12R-b
10/12R-b
11/12
12/12

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 00/12] btrfs: various cleanups to make ctree.c sync easier

Hello,

These are various cleanups I needed to make syncing some of the kernel files into btrfs-progs go smoothly. They're cosmetic and organizational and shouldn't have any functional changes. Thanks,

Josef

Josef Bacik (12):
btrfs: move btrfs_check_trunc_cache_free_space into block-rsv.c
btrfs: remove level argument from btrfs_set_block_flags
btrfs: simplify btrfs_check_leaf_* helpers into a single helper
btrfs: add btrfs_tree_block_status definitions to tree-checker.h
btrfs: use btrfs_tree_block_status for leaf item errors
btrfs: extend btrfs_leaf_check to return btrfs_tree_block_status
btrfs: add __btrfs_check_node helper
btrfs: move btrfs_verify_level_key into tree-checker.c
btrfs: move split_flags/combine_flags helpers to inode-item.h
btrfs: add __KERNEL__ check for btrfs_no_printk
btrfs: add a btrfs_csum_type_size helper
btrfs: rename del_ptr -> btrfs_del_ptr and export it

 fs/btrfs/block-rsv.c        |  19 +++++
 fs/btrfs/block-rsv.h        |   2 +
 fs/btrfs/btrfs_inode.h      |  16 ----
 fs/btrfs/ctree.c            |  29 ++++---
 fs/btrfs/ctree.h            |   3 +
 fs/btrfs/disk-io.c          |  70 ++--------------
 fs/btrfs/disk-io.h          |   2 -
 fs/btrfs/extent-tree.c      |   7 +-
 fs/btrfs/extent-tree.h      |   2 +-
 fs/btrfs/free-space-cache.c |  19 -----
 fs/btrfs/free-space-cache.h |   2 -
 fs/btrfs/inode-item.h       |  16 ++++
 fs/btrfs/messages.h         |   7 ++
 fs/btrfs/tree-checker.c     | 157 ++++++++++++++++++++++++++----------
 fs/btrfs/tree-checker.h     |  29 ++++---
 15 files changed, 207 insertions(+), 173 deletions(-)
Signature · 1 line
2.40.0