Skip to content

Move some code out of ctree.c and ctree.h

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7btrfs: move cond_wake_up functions out of ctreefs/btrfs/compression.c fs/btrfs/ctree.h fs/btrfs/delayed-inode.c +9 more+43 -221 reply
2/7btrfs: move math functions to misc.hfs/btrfs/block-group.c fs/btrfs/block-rsv.c fs/btrfs/extent-tree.c +4 more+21 -331 reply
3/7btrfs: move private raid56 definitions from ctree.hfs/btrfs/ctree.h fs/btrfs/raid56.c+16 -161 reply
4/7btrfs: rename and export read_node_slotfs/btrfs/ctree.c fs/btrfs/ctree.h+14 -111 reply
5/7btrfs: move functions for tree compare to send.cfs/btrfs/ctree.c fs/btrfs/ctree.h fs/btrfs/send.c+374 -3761 reply
6/7btrfs: move struct io_ctl to free-space-cache.hfs/btrfs/block-group.h fs/btrfs/ctree.h fs/btrfs/free-space-cache.h+15 -151 reply
7/7btrfs: move dev_stats helpers to volumes.cfs/btrfs/ctree.h fs/btrfs/volumes.c+23 -241 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/7R-b
2/7
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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 0/7] Move some code out of ctree.c and ctree.h

The ctree.[ch] files gathered a lot of unrelated code over the years, it should be moved to appropriate files. This series does the easiest part, nes I'll split the incompate/feature handling and messages.

David Sterba (7):
btrfs: move cond_wake_up functions out of ctree
btrfs: move math functions to misc.h
btrfs: move private raid56 definitions from ctree.h
btrfs: rename and export read_node_slot
btrfs: move functions for tree compare to send.c
btrfs: move struct io_ctl to free-space-cache.h
btrfs: move dev_stats helpers to volumes.c

 fs/btrfs/block-group.c      |   2 +-
 fs/btrfs/block-group.h      |   2 +
 fs/btrfs/block-rsv.c        |   2 +-
 fs/btrfs/compression.c      |   1 +
 fs/btrfs/ctree.c            | 382 +-----------------------------------
 fs/btrfs/ctree.h            |  93 +--------
 fs/btrfs/delayed-inode.c    |   1 +
 fs/btrfs/dev-replace.c      |   1 +
 fs/btrfs/extent-tree.c      |   2 +-
 fs/btrfs/free-space-cache.h |  14 +-
 fs/btrfs/inode.c            |   1 +
 fs/btrfs/locking.c          |   1 +
 fs/btrfs/math.h             |  28 ---
 fs/btrfs/misc.h             |  50 +++++
 fs/btrfs/ordered-data.c     |   1 +
 fs/btrfs/raid56.c           |  16 ++
 fs/btrfs/send.c             | 374 +++++++++++++++++++++++++++++++++++
 fs/btrfs/space-info.c       |   2 +-
 fs/btrfs/transaction.c      |   1 +
 fs/btrfs/tree-log.c         |   1 +
 fs/btrfs/volumes.c          |  25 ++-
 fs/btrfs/zstd.c             |   1 +
 22 files changed, 505 insertions(+), 496 deletions(-)
 delete mode 100644 fs/btrfs/math.h
 create mode 100644 fs/btrfs/misc.h
Signature · 1 line
2.22.0