From: fdmanana@kernel.org
To: linux-btrfs@vger.kernel.org
Subject: [PATCH v2 00/10] btrfs: reduce memory consumption for block groups
Date: Wed, 15 Apr 2026 19:44:38 +0100 [thread overview]
Message-ID: <cover.1776278490.git.fdmanana@suse.com> (raw)
In-Reply-To: <cover.1776263553.git.fdmanana@suse.com>
From: Filipe Manana <fdmanana@suse.com>
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(-)
--
2.47.2
next prev parent reply other threads:[~2026-04-15 18:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-15 14:38 [PATCH 0/9] btrfs: reduce memory consumption for block groups fdmanana
2026-04-15 14:38 ` [PATCH 1/9] btrfs: use a kmem_cache " fdmanana
2026-04-15 14:38 ` [PATCH 2/9] btrfs: reduce size of struct btrfs_block_group fdmanana
2026-04-15 14:38 ` [PATCH 3/9] btrfs: use a kmem_cache for free space control structures fdmanana
2026-04-15 14:38 ` [PATCH 4/9] btrfs: remove start field from struct btrfs_free_space_ctl fdmanana
2026-04-15 14:38 ` [PATCH 5/9] btrfs: remove unit " fdmanana
2026-04-15 14:38 ` [PATCH 6/9] btrfs: reduce size of " fdmanana
2026-04-15 14:38 ` [PATCH 7/9] btrfs: remove block group argument from copy_free_space_cache() fdmanana
2026-04-15 14:38 ` [PATCH 8/9] btrfs: remove unnecessary ctl argument from __btrfs_write_out_cache() fdmanana
2026-04-15 14:38 ` [PATCH 9/9] btrfs: remove unnecessary ctl argument from write_cache_extent_entries() fdmanana
2026-04-15 18:44 ` fdmanana [this message]
2026-04-15 18:44 ` [PATCH v2 01/10] btrfs: use a kmem_cache for block groups fdmanana
2026-04-17 1:51 ` David Sterba
2026-04-15 18:44 ` [PATCH v2 02/10] btrfs: reduce size of struct btrfs_block_group fdmanana
2026-04-15 20:07 ` Martin Raiber
2026-04-16 10:30 ` Filipe Manana
2026-04-16 10:46 ` Martin Raiber
2026-04-17 2:09 ` David Sterba
2026-04-15 18:44 ` [PATCH v2 03/10] btrfs: use a kmem_cache for free space control structures fdmanana
2026-04-15 18:44 ` [PATCH v2 04/10] btrfs: remove start field from struct btrfs_free_space_ctl fdmanana
2026-04-15 18:44 ` [PATCH v2 05/10] btrfs: remove unit " fdmanana
2026-04-15 18:44 ` [PATCH v2 06/10] btrfs: reduce size of " fdmanana
2026-04-15 18:44 ` [PATCH v2 07/10] btrfs: remove op field from " fdmanana
2026-04-15 18:44 ` [PATCH v2 08/10] btrfs: remove block group argument from copy_free_space_cache() fdmanana
2026-04-15 18:44 ` [PATCH v2 09/10] btrfs: remove unnecessary ctl argument from __btrfs_write_out_cache() fdmanana
2026-04-15 18:44 ` [PATCH v2 10/10] btrfs: remove unnecessary ctl argument from write_cache_extent_entries() fdmanana
2026-04-17 2:16 ` [PATCH v2 00/10] btrfs: reduce memory consumption for block groups David Sterba
2026-04-17 7:54 ` Filipe Manana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1776278490.git.fdmanana@suse.com \
--to=fdmanana@kernel.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox