Skip to content

btrfs: strip out btrfs_fs_info dependencies

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15btrfs: move btrfs_caching_type to block-group.hfs/btrfs/block-group.h fs/btrfs/ctree.h+7 -72 replies
2/15btrfs: move btrfs_full_stripe_locks_tree into block-group.hfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/ctree.h+10 -152 replies
3/15btrfs: move btrfs_init_async_reclaim_work prototype to space-info.hfs/btrfs/ctree.h fs/btrfs/space-info.h+1 -22 replies
4/15btrfs: move btrfs_pinned_by_swapfile prototype into volumes.hfs/btrfs/ctree.h fs/btrfs/volumes.h+1 -22 replies
5/15btrfs: remove temporary btrfs_map_token declaration in ctree.hfs/btrfs/ctree.h+0 -23 replies
6/15btrfs: move static_assert() for btrfs_super_block into fs.cfs/btrfs/ctree.h fs/btrfs/fs.c+2 -13 replies
7/15btrfs: move btrfs_swapfile_pin into volumes.hfs/btrfs/ctree.h fs/btrfs/volumes.h+25 -252 replies
8/15btrfs: move fs_info struct declarations to the top of ctree.hfs/btrfs/ctree.h+7 -72 replies
9/15btrfs: move btrfs_csum_ptr to inode.cfs/btrfs/ctree.h fs/btrfs/inode.c+8 -82 replies
10/15btrfs: move the fs_info related helpers closer to fs_info in ctree.hfs/btrfs/ctree.h+94 -932 replies
11/15btrfs: move btrfs_ordered_sum_size into file-item.cfs/btrfs/file-item.c fs/btrfs/ordered-data.h+12 -122 replies
12/15btrfs: delete btrfs_inode_sectorsize helperfs/btrfs/btrfs_inode.h fs/btrfs/extent_io.c fs/btrfs/file.c+7 -132 replies
13/15btrfs: delete btrfs_insert_inode_hash helperfs/btrfs/btrfs_inode.h fs/btrfs/disk-io.c+3 -82 replies
14/15btrfs: use a runtime flag to indicate an inode is a free space inodefs/btrfs/btrfs_inode.h fs/btrfs/inode.c+8 -72 replies
15/15btrfs: add struct declarations in dev-replace.hfs/btrfs/dev-replace.h+4 -02 replies

Reviews trailers per patch

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

PatchAnand JainJohannes Thumshirn
1/15R-b R-b
2/15R-b R-b
3/15R-b R-b
4/15R-b R-b
5/15R-b R-b
6/15R-b R-b
7/15R-b
8/15R-b R-b
9/15R-b R-b
10/15R-b R-b
11/15R-b R-b
12/15R-b R-b
13/15R-b R-b
14/15R-b R-b
15/15R-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/15] btrfs: strip out btrfs_fs_info dependencies

Part of the cleaning up of ctree.h is being able to move btrfs_fs_info out of it. This is actually pretty difficult because we essentially rely on ctree.h being included before everything else, so all other header files have fs_info defined for their helpers.

This series starts this work. There are a variety of other small moves as well, but the bulk is trying to pull any helpers that access fs_info members inside of their header files into their respective c files, or alternatively reworking the code to drop the dependency. Thanks,

Josef

Josef Bacik (15):
btrfs: move btrfs_caching_type to block-group.h
btrfs: move btrfs_full_stripe_locks_tree into block-group.h
btrfs: move btrfs_init_async_reclaim_work prototype to space-info.h
btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h
btrfs: remove temporary btrfs_map_token declaration in ctree.h
btrfs: move static_assert() for btrfs_super_block into fs.c
btrfs: move btrfs_swapfile_pin into volumes.h
btrfs: move fs_info struct declarations to the top of ctree.h
btrfs: move btrfs_csum_ptr to inode.c
btrfs: move the fs_info related helpers closer to fs_info in ctree.h
btrfs: move btrfs_ordered_sum_size into file-item.c
btrfs: delete btrfs_inode_sectorsize helper
btrfs: delete btrfs_insert_inode_hash helper
btrfs: use a runtime flag to indicate an inode is a free space inode
btrfs: add struct declarations in dev-replace.h

 fs/btrfs/block-group.c  |   3 +-
 fs/btrfs/block-group.h  |  15 +++
 fs/btrfs/btrfs_inode.h  |  22 +---
 fs/btrfs/ctree.h        | 260 ++++++++++++++++------------------------
 fs/btrfs/dev-replace.h  |   4 +
 fs/btrfs/disk-io.c      |   4 +-
 fs/btrfs/extent_io.c    |   4 +-
 fs/btrfs/file-item.c    |  12 ++
 fs/btrfs/file.c         |  11 +-
 fs/btrfs/fs.c           |   2 +
 fs/btrfs/inode.c        |  13 ++
 fs/btrfs/ordered-data.h |  12 --
 fs/btrfs/space-info.h   |   1 +
 fs/btrfs/volumes.h      |  26 ++++
 14 files changed, 188 insertions(+), 201 deletions(-)
Signature · 1 line
2.26.3