btrfs: move random block rsv code around
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | btrfs: migrate the delayed refs rsv codefs/ fs/ fs/ +1 more | +187 | 0 replies | |
| 2/4 | btrfs: migrate btrfs_trans_release_chunk_metadatafs/ fs/ fs/ +1 more | +19 | 0 replies | |
| 3/4 | btrfs: migrate the delalloc space stuff to it's own homefs/ fs/ fs/ +9 more | +531 | 0 replies | |
| 4/4 | btrfs: move the subvolume reservation stuff out of extent-tree.cfs/ fs/ | +56 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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