Skip to content

btrfs: move btrfs_fs_info and some prototypes

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9btrfs: move btrfs_fs_info declarations into fs.hfs/btrfs/ctree.h fs/btrfs/fs.h+658 -6580 replies
2/9btrfs: move the lockdep helpers into locking.hfs/btrfs/ctree.h fs/btrfs/locking.h+76 -760 replies
3/9btrfs: minor whitespace in ctree.hfs/btrfs/ctree.h+0 -20 replies
4/9btrfs: remove extra space info prototypes in ctree.hfs/btrfs/ctree.h+0 -30 replies
5/9btrfs: move btrfs_account_ro_block_groups_free_space into space-info.cfs/btrfs/ctree.h fs/btrfs/extent-tree.c fs/btrfs/space-info.c +1 more+35 -350 replies
6/9btrfs: move extent-tree helpers into their own header filefs/btrfs/backref.c fs/btrfs/block-group.c fs/btrfs/ctree.c +14 more+91 -720 replies
7/9btrfs: move delalloc space related prototypes to delalloc-space.hfs/btrfs/ctree.h fs/btrfs/delalloc-space.h+3 -30 replies
8/9btrfs: delete unused function prototypes in ctree.hfs/btrfs/ctree.h+0 -60 replies
9/9btrfs: move root tree prototypes to their own headerfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/extent-tree.c +9 more+46 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] btrfs: move btrfs_fs_info and some prototypes

Hello,

This is the next batch of ctree.h cleanups, and likely the last one for a little bit. The remaining prototypes in ctree.h are going to be touched by a lot of work that's currently happening, and I don't want to mess with peoples work now that we're getting into the development cycle a little bit.

The big thing I've done is moved btrfs_fs_info into fs.h. This is relatively painless at this poing since I've organized everything up to now so I can just copy and paste the big chunk of it out of ctree.h into fs.h.

Then I've gone through and cleaned up a lot of randomm little things, and then moved some prototypes into their own headers.

I stopped where we got to the name stuff, as I know the fscrypt stuff is going to touch all of that. I don't want to make that harder to merge, so I've stopped here so that code can go in when it's ready, and then we can pick back up cleaning up the rest of ctree.h.

The entirety of these changes are just code moving, there's been no functional changing. Thanks,

Josef

Josef Bacik (9):
btrfs: move btrfs_fs_info declarations into fs.h
btrfs: move the lockdep helpers into locking.h
btrfs: minor whitespace in ctree.h
btrfs: remove extra space info prototypes in ctree.h
btrfs: move btrfs_account_ro_block_groups_free_space into space-info.c
btrfs: move extent-tree helpers into their own header file
btrfs: move delalloc space related prototypes to delalloc-space.h
btrfs: delete unused function prototypes in ctree.h
btrfs: move root tree prototypes to their own header

 fs/btrfs/backref.c         |   1 +
 fs/btrfs/block-group.c     |   1 +
 fs/btrfs/ctree.c           |   1 +
 fs/btrfs/ctree.h           | 854 +------------------------------------
 fs/btrfs/delalloc-space.h  |   3 +
 fs/btrfs/disk-io.c         |   2 +
 fs/btrfs/extent-tree.c     |  36 +-
 fs/btrfs/extent-tree.h     |  76 ++++
 fs/btrfs/file.c            |   1 +
 fs/btrfs/free-space-tree.c |   2 +
 fs/btrfs/fs.h              | 657 ++++++++++++++++++++++++++++
 fs/btrfs/inode-item.c      |   1 +
 fs/btrfs/inode.c           |   2 +
 fs/btrfs/ioctl.c           |   2 +
 fs/btrfs/locking.h         |  76 ++++
 fs/btrfs/qgroup.c          |   2 +
 fs/btrfs/relocation.c      |   2 +
 fs/btrfs/root-tree.c       |   1 +
 fs/btrfs/root-tree.h       |  36 ++
 fs/btrfs/space-info.c      |  35 ++
 fs/btrfs/space-info.h      |   1 +
 fs/btrfs/transaction.c     |   2 +
 fs/btrfs/tree-log.c        |   2 +
 23 files changed, 909 insertions(+), 887 deletions(-)
 create mode 100644 fs/btrfs/extent-tree.h
 create mode 100644 fs/btrfs/root-tree.h
Signature · 1 line
2.26.3