Skip to content

btrfs: reduce memory consumption for block groups

[email protected] linux-btrfs 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 9 repliesIn review
  2. v19 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10btrfs: use a kmem_cache for block groupsfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/super.c+26 -31 reply
2/10btrfs: reduce size of struct btrfs_block_groupfs/btrfs/block-group.h+16 -176 replies
3/10btrfs: use a kmem_cache for free space control structuresfs/btrfs/block-group.c+13 -20 replies
4/10btrfs: remove start field from struct btrfs_free_space_ctlfs/btrfs/free-space-cache.c fs/btrfs/free-space-cache.h+4 -60 replies
5/10btrfs: remove unit field from struct btrfs_free_space_ctlfs/btrfs/free-space-cache.c fs/btrfs/free-space-cache.h+52 -440 replies
6/10btrfs: reduce size of struct btrfs_free_space_ctlfs/btrfs/free-space-cache.h+2 -20 replies
7/10btrfs: remove op field from struct btrfs_free_space_ctlfs/btrfs/free-space-cache.c fs/btrfs/free-space-cache.h fs/btrfs/fs.h +2 more+31 -330 replies
8/10btrfs: remove block group argument from copy_free_space_cache()fs/btrfs/free-space-cache.c+4 -50 replies
9/10btrfs: remove unnecessary ctl argument from __btrfs_write_out_cache()fs/btrfs/free-space-cache.c+2 -30 replies
10/10btrfs: remove unnecessary ctl argument from write_cache_extent_entries()fs/btrfs/free-space-cache.c+2 -30 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid Sterba
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/10] btrfs: reduce memory consumption for block groups

From: Filipe Manana <[email protected]>

Reduce the amount of memory used by block groups by using kmem caches and reducing structure sizes, plus a few cleanups. Details in the change logs.

V2: Add one extra patch that was missing, to further reduce the size
of struct btrfs_free_space_ctl (patch 7/10).

Filipe Manana (10):
btrfs: use a kmem_cache for block groups
btrfs: reduce size of struct btrfs_block_group
btrfs: use a kmem_cache for free space control structures
btrfs: remove start field from struct btrfs_free_space_ctl
btrfs: remove unit field from struct btrfs_free_space_ctl
btrfs: reduce size of struct btrfs_free_space_ctl
btrfs: remove op field from struct btrfs_free_space_ctl
btrfs: remove block group argument from copy_free_space_cache()
btrfs: remove unnecessary ctl argument from __btrfs_write_out_cache()
btrfs: remove unnecessary ctl argument from write_cache_extent_entries()

 fs/btrfs/block-group.c            |  38 +++++++-
 fs/btrfs/block-group.h            |  36 ++++----
 fs/btrfs/free-space-cache.c       | 147 +++++++++++++++---------------
 fs/btrfs/free-space-cache.h       |  14 +--
 fs/btrfs/fs.h                     |   7 ++
 fs/btrfs/super.c                  |   3 +
 fs/btrfs/tests/btrfs-tests.c      |   1 +
 fs/btrfs/tests/free-space-tests.c |  24 ++---
 8 files changed, 152 insertions(+), 118 deletions(-)
Signature · 1 line
2.47.2