btrfs: strip out btrfs_fs_info dependencies
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 33 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | btrfs: move btrfs_caching_type to block-group.hfs/ fs/ | +7 | 2 replies | |
| 2/15 | btrfs: move btrfs_full_stripe_locks_tree into block-group.hfs/ fs/ fs/ | +10 | 2 replies | |
| 3/15 | btrfs: move btrfs_init_async_reclaim_work prototype to space-info.hfs/ fs/ | +1 | 2 replies | |
| 4/15 | btrfs: move btrfs_pinned_by_swapfile prototype into volumes.hfs/ fs/ | +1 | 2 replies | |
| 5/15 | btrfs: remove temporary btrfs_map_token declaration in ctree.hfs/ | +0 | 3 replies | |
| 6/15 | btrfs: move static_assert() for btrfs_super_block into fs.cfs/ fs/ | +2 | 3 replies | |
| 7/15 | btrfs: move btrfs_swapfile_pin into volumes.hfs/ fs/ | +25 | 2 replies | |
| 8/15 | btrfs: move fs_info struct declarations to the top of ctree.hfs/ | +7 | 2 replies | |
| 9/15 | btrfs: move btrfs_csum_ptr to inode.cfs/ fs/ | +8 | 2 replies | |
| 10/15 | btrfs: move the fs_info related helpers closer to fs_info in ctree.hfs/ | +94 | 2 replies | |
| 11/15 | btrfs: move btrfs_ordered_sum_size into file-item.cfs/ fs/ | +12 | 2 replies | |
| 12/15 | btrfs: delete btrfs_inode_sectorsize helperfs/ fs/ fs/ | +7 | 2 replies | |
| 13/15 | btrfs: delete btrfs_insert_inode_hash helperfs/ fs/ | +3 | 2 replies | |
| 14/15 | btrfs: use a runtime flag to indicate an inode is a free space inodefs/ fs/ | +8 | 2 replies | |
| 15/15 | btrfs: add struct declarations in dev-replace.hfs/ | +4 | 2 replies |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Anand Jain | Johannes Thumshirn |
|---|---|---|
| 1/15 | R-b | R-b |
| 2/15 | R-b | R-b |
| 3/15 | R-b | R-b |
| 4/15 | R-b | R-b |
| 5/15 | R-b | R-b |
| 6/15 | R-b | R-b |
| 7/15 | R-b | |
| 8/15 | R-b | R-b |
| 9/15 | R-b | R-b |
| 10/15 | R-b | R-b |
| 11/15 | R-b | R-b |
| 12/15 | R-b | R-b |
| 13/15 | R-b | R-b |
| 14/15 | R-b | R-b |
| 15/15 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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