Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Boris Burkov <boris@bur.io>
To: David Sterba <dsterba@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 0/4] Delayed ref root cleanups
Date: Fri, 9 Jan 2026 10:16:27 -0800	[thread overview]
Message-ID: <20260109181627.GB3036615@zen.localdomain> (raw)
In-Reply-To: <cover.1767979013.git.dsterba@suse.com>

On Fri, Jan 09, 2026 at 06:17:39PM +0100, David Sterba wrote:
> Embed delayed root into btrfs_fs_info.

The patches all look fine to me, but I think it would be nice to give
some justification for why it is desirable to make this change besides
"it's possible". If anything, it is a regression on the size of struct
btrfs_fs_info as you mention in the first patch.

If the answer is just that it's simpler and there is no need for a
separate allocation, then fair enough. But then why not directly embed
all the one-off structures pointed to by fs_info? Like all the global
roots, for example. Are they too large? What constitutes too large?
Later, when we slowly add stuff to fs_info till it is bigger than 4k,
should we undo this patch set? Or look for other, bigger structs to
unembed first?

Thanks,
Boris

> 
> David Sterba (4):
>   btrfs: embed delayed root to struct btrfs_fs_info
>   btrfs: reorder members in btrfs_delayed_root for better packing
>   btrfs: don't use local variables for fs_info->delayed_root
>   btrfs: pass btrfs_fs_info to btrfs_first_delayed_node()
> 
>  fs/btrfs/delayed-inode.c | 49 +++++++++++++---------------------------
>  fs/btrfs/delayed-inode.h | 15 ------------
>  fs/btrfs/disk-io.c       |  8 ++-----
>  fs/btrfs/fs.h            | 18 +++++++++++++--
>  4 files changed, 34 insertions(+), 56 deletions(-)
> 
> -- 
> 2.51.1
> 

  parent reply	other threads:[~2026-01-09 18:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-09 17:17 [PATCH 0/4] Delayed ref root cleanups David Sterba
2026-01-09 17:17 ` [PATCH 1/4] btrfs: embed delayed root to struct btrfs_fs_info David Sterba
2026-01-09 17:17 ` [PATCH 2/4] btrfs: reorder members in btrfs_delayed_root for better packing David Sterba
2026-01-09 21:16   ` Qu Wenruo
2026-01-13  0:56     ` David Sterba
2026-01-09 17:17 ` [PATCH 3/4] btrfs: don't use local variables for fs_info->delayed_root David Sterba
2026-01-09 17:17 ` [PATCH 4/4] btrfs: pass btrfs_fs_info to btrfs_first_delayed_node() David Sterba
2026-01-09 18:16 ` Boris Burkov [this message]
2026-01-09 21:09   ` [PATCH 0/4] Delayed ref root cleanups David Sterba
2026-01-09 21:39     ` Boris Burkov
2026-01-13  1:10       ` David Sterba
2026-01-09 22:27     ` Boris Burkov
2026-01-13  1:11       ` David Sterba

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=20260109181627.GB3036615@zen.localdomain \
    --to=boris@bur.io \
    --cc=dsterba@suse.com \
    --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