Skip to content

btrfs: initial ctree.h cleanups, simple stuff

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 43 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17btrfs: remove set/clear_pending_info helpersfs/btrfs/ctree.h+0 -243 replies
2/17btrfs: remove BTRFS_TOTAL_BYTES_PINNED_BATCHfs/btrfs/ctree.h+0 -82 replies
3/17btrfs: remove BTRFS_IOPRIO_READAfs/btrfs/ctree.h+0 -32 replies
4/17btrfs: move btrfs on disk definitions out of ctree.hfs/btrfs/ctree.h include/uapi/linux/btrfs_tree.h+214 -2143 replies
5/17btrfs: move btrfs_get_block_group helper out of disk-io.hfs/btrfs/disk-io.c fs/btrfs/disk-io.h+8 -72 replies
6/17btrfs: move maximum limits to btrfs_tree.hfs/btrfs/ctree.h include/uapi/linux/btrfs_tree.h+13 -132 replies
7/17btrfs: move BTRFS_MAX_MIRRORS into scrub.cfs/btrfs/ctree.h fs/btrfs/scrub.c+11 -112 replies
8/17btrfs: move discard stat defs to free-space-cache.hfs/btrfs/ctree.h fs/btrfs/free-space-cache.h+9 -94 replies
9/17btrfs: move btrfs_chunk_item_size out of ctree.hfs/btrfs/ctree.h fs/btrfs/volumes.c fs/btrfs/volumes.h+8 -83 replies
10/17btrfs: move btrfs_should_fragment_free_space into block-group.cfs/btrfs/block-group.c fs/btrfs/block-group.h+13 -102 replies
11/17btrfs: move flush related definitions to space-info.hfs/btrfs/ctree.h fs/btrfs/delayed-inode.c fs/btrfs/inode-item.c +4 more+64 -593 replies
12/17btrfs: move btrfs_print_data_csum_error into inode.cfs/btrfs/btrfs_inode.h fs/btrfs/inode.c+25 -263 replies
13/17btrfs: move trans_handle_cachep out of ctree.hfs/btrfs/ctree.h fs/btrfs/inode.c fs/btrfs/super.c +2 more+27 -102 replies
14/17btrfs: move btrfs_path_cachep out of ctree.hfs/btrfs/ctree.c fs/btrfs/ctree.h fs/btrfs/inode.c +1 more+27 -102 replies
15/17btrfs: move free space cachep's out of ctree.hfs/btrfs/ctree.h fs/btrfs/free-space-cache.c fs/btrfs/free-space-cache.h +2 more+38 -192 replies
16/17btrfs: move btrfs_next_old_item into ctree.cfs/btrfs/ctree.c fs/btrfs/ctree.h+11 -82 replies
17/17btrfs: move the btrfs_verity_descriptor_item defs up in ctree.hfs/btrfs/ctree.h+10 -132 replies

Reviews trailers per patch

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

PatchQu WenruoJohannes Thumshirn
1/17R-b R-b
2/17R-b R-b
3/17R-b R-b
4/17R-b
5/17R-b
6/17R-b R-b
7/17R-b R-b
8/17R-b R-b
9/17R-b
10/17R-b R-b
11/17R-b
12/17R-b R-b
13/17R-b R-b
14/17R-b R-b
15/17R-b R-b
16/17R-b R-b
17/17R-b R-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 00/17] btrfs: initial ctree.h cleanups, simple stuff

Hello,

This is the first part in what will probably be very many parts in my work to cleanup ctree.h. These are the smaller changes, mostly removing code that's not used anymore, moving some stuff that's local to C files that don't need to be in the header at all, and moving the rest of the on-disk definition stuff to btrfs_tree.h. There's a lot of patche here, but they're all relatively small, the largest being the patch to move the on-disk definitions to btrfs_tree.h, which is not very large compared to patches in the next several series. This has been built and tested, it's relatively low risk. Thanks,

Josef

Josef Bacik (17):
btrfs: remove set/clear_pending_info helpers
btrfs: remove BTRFS_TOTAL_BYTES_PINNED_BATCH
btrfs: remove BTRFS_IOPRIO_READA
btrfs: move btrfs on disk definitions out of ctree.h
btrfs: move btrfs_get_block_group helper out of disk-io.h
btrfs: move maximum limits to btrfs_tree.h
btrfs: move BTRFS_MAX_MIRRORS into scrub.c
btrfs: move discard stat defs to free-space-cache.h
btrfs: move btrfs_chunk_item_size out of ctree.h
btrfs: move btrfs_should_fragment_free_space into block-group.c
btrfs: move flush related definitions to space-info.h
btrfs: move btrfs_print_data_csum_error into inode.c
btrfs: move trans_handle_cachep out of ctree.h
btrfs: move btrfs_path_cachep out of ctree.h
btrfs: move free space cachep's out of ctree.h
btrfs: move btrfs_next_old_item into ctree.c
btrfs: move the btrfs_verity_descriptor_item defs up in ctree.h

 fs/btrfs/block-group.c          |  12 +
 fs/btrfs/block-group.h          |  11 +-
 fs/btrfs/btrfs_inode.h          |  26 ---
 fs/btrfs/ctree.c                |  26 +++
 fs/btrfs/ctree.h                | 388 ++------------------------------
 fs/btrfs/delayed-inode.c        |   1 +
 fs/btrfs/disk-io.c              |   7 +
 fs/btrfs/disk-io.h              |   8 +-
 fs/btrfs/free-space-cache.c     |  28 +++
 fs/btrfs/free-space-cache.h     |  11 +
 fs/btrfs/inode-item.c           |   1 +
 fs/btrfs/inode.c                |  57 ++---
 fs/btrfs/props.c                |   1 +
 fs/btrfs/relocation.c           |   1 +
 fs/btrfs/scrub.c                |  11 +
 fs/btrfs/space-info.h           |  59 +++++
 fs/btrfs/super.c                |  24 +-
 fs/btrfs/transaction.c          |  17 ++
 fs/btrfs/transaction.h          |   2 +
 fs/btrfs/volumes.c              |   7 +
 fs/btrfs/volumes.h              |   2 +-
 include/uapi/linux/btrfs_tree.h | 226 +++++++++++++++++++
 22 files changed, 476 insertions(+), 450 deletions(-)
Signature · 1 line
2.26.3