Skip to content

btrfs: break up extent_io.c a little bit

Josef Bacik linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 of 9 patches 6 repliesIn review
  2. v28 of 9 patches 0 repliesSuperseded
  3. v18 of 9 patches 1 replySuperseded

v1->v2 from the cover letter

- renamed find_delalloc_range to btrfs_find_delalloc_range for now.

8 of 9 patches are in this archive. The cover letter announces 9.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9btrfs: separate out the extent leak codefs/btrfs/extent_io.c+19 -120 replies
2/9btrfs: separate out the extent io init functionfs/btrfs/extent_io.c fs/btrfs/extent_io.h fs/btrfs/super.c+21 -80 replies
3/9btrfs: move extent_io_tree defs to their own headerfs/btrfs/ctree.h fs/btrfs/extent-io-tree.h fs/btrfs/extent_io.c +1 more+230 -2160 replies
4/9btrfs: export find_delalloc_rangefs/btrfs/extent-io-tree.h fs/btrfs/extent_io.c+8 -50 replies
5/9btrfs: move the failrec tree stuff into extent-io-tree.hfs/btrfs/extent-io-tree.h fs/btrfs/extent_io.c fs/btrfs/extent_io.h+22 -150 replies
7/9btrfs: separate out the extent buffer init codefs/btrfs/extent_io.c fs/btrfs/extent_io.h fs/btrfs/super.c+29 -180 replies
8/9btrfs: migrate the extent_buffer code out of extent-io.hfs/btrfs/ctree.h fs/btrfs/disk-io.h fs/btrfs/extent-buffer.h +1 more+157 -1470 replies
9/9btrfs: move the extent-buffer codefs/btrfs/Makefile fs/btrfs/extent-buffer.c fs/btrfs/extent_io.c+1270 -12580 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH 0/9][V3] btrfs: break up extent_io.c a little bit

v1->v2:
- renamed find_delalloc_range to btrfs_find_delalloc_range for now.

-- Original email --

Currently extent_io.c includes all of the extent-io-tree code, the extent buffer code, the code to do IO on extent buffers and data extents, as well as a bunch of other random stuff. The random stuff just needs to be cleaned up, and is probably too invasive for this point in the development cycle. Instead I simply tackled moving the big obvious things out into their own files. I will follow up with cleanups for the rest of the stuff, but those can probably wait until the next cycle as they are going to be slightly more risky. As usual I didn't try to change anything, I simply moved code around. Any time I needed to make actual changes to functions I made a separate patch for that work, so for example breaking up the init/exit functions for extent-io-tree. Everything else is purely cut and paste into new files. The diffstat is as follows

 fs/btrfs/Makefile         |    3 +-
 fs/btrfs/ctree.h          |    3 +-
 fs/btrfs/disk-io.h        |    2 +
 fs/btrfs/extent-buffer.c  | 1266 ++++++++
 fs/btrfs/extent-buffer.h  |  152 +
 fs/btrfs/extent-io-tree.c | 1955 ++++++++++++
 fs/btrfs/extent-io-tree.h |  248 ++
 fs/btrfs/extent_io.c      | 7555 +++++++++++++--------------------------------
 fs/btrfs/extent_io.h      |  372 +--
 fs/btrfs/super.c          |   16 +-
 10 files changed, 5843 insertions(+), 5729 deletions(-)

Thanks,

Josef