Skip to content

btrfs: move random block rsv code around

Josef Bacik linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: migrate the delayed refs rsv codefs/btrfs/ctree.h fs/btrfs/delayed-ref.c fs/btrfs/delayed-ref.h +1 more+187 -1840 replies
2/4btrfs: migrate btrfs_trans_release_chunk_metadatafs/btrfs/ctree.h fs/btrfs/extent-tree.c fs/btrfs/transaction.c +1 more+19 -190 replies
3/4btrfs: migrate the delalloc space stuff to it's own homefs/btrfs/Makefile fs/btrfs/ctree.h fs/btrfs/delalloc-space.c +9 more+531 -5000 replies
4/4btrfs: move the subvolume reservation stuff out of extent-tree.cfs/btrfs/extent-tree.c fs/btrfs/root-tree.c+56 -540 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/4] btrfs: move random block rsv code around

We have some specialized block rsvs, like the inode rsv and the delayed refs rsv, that have their own special oddities. These don't fit in extent-tree.c, so migrate them to different places. Most of them go to existing files, but the delalloc stuff gets its own file because it's a lot of code, and inode.c and file.c are relatively large already.

This depends on the previous two chunks of migrations. These are relatively small and straightforward since all of the functions were exported already as they are used throughout the entire codebase. The diffstat is as follows

 fs/btrfs/Makefile           |   2 +-
 fs/btrfs/ctree.h            |  24 --
 fs/btrfs/delalloc-space.c   | 497 ++++++++++++++++++++++++++++++
 fs/btrfs/delalloc-space.h   |  25 ++
 fs/btrfs/delayed-ref.c      | 177 +++++++++++
 fs/btrfs/delayed-ref.h      |  10 +
 fs/btrfs/extent-tree.c      | 733 +-------------------------------------------
 fs/btrfs/file.c             |   1 +
 fs/btrfs/free-space-cache.c |   1 +
 fs/btrfs/inode-map.c        |   1 +
 fs/btrfs/inode.c            |   1 +
 fs/btrfs/ioctl.c            |   1 +
 fs/btrfs/ordered-data.c     |   1 +
 fs/btrfs/relocation.c       |   1 +
 fs/btrfs/root-tree.c        |  56 ++++
 fs/btrfs/transaction.c      |  18 ++
 fs/btrfs/transaction.h      |   1 +
 17 files changed, 793 insertions(+), 757 deletions(-)

Thanks,

Josef