From: Josef Bacik <josef@toxicpanda.com>
To: David Sterba <dsterba@suse.cz>
Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH 2/2] btrfs: add delayed ref self tests
Date: Mon, 9 Dec 2024 09:01:44 -0500 [thread overview]
Message-ID: <20241209140144.GC2840216@perftesting> (raw)
In-Reply-To: <20241206195100.GM31418@twin.jikos.cz>
On Fri, Dec 06, 2024 at 08:51:00PM +0100, David Sterba wrote:
> On Fri, Nov 15, 2024 at 07:33:05PM +0100, David Sterba wrote:
> > On Thu, Nov 14, 2024 at 02:57:49PM -0500, Josef Bacik wrote:
> > > + node_check.root = FAKE_ROOT_OBJECTID;
> > > + if (validate_ref_node(node, &node_check)) {
> > > + test_err("node check failed");
> > > + goto out;
> > > + }
> > > + delete_delayed_ref_node(head, node);
> > > + ret = 0;
> > > +out:
> > > + if (head)
> > > + btrfs_unselect_ref_head(delayed_refs, head);
> > > + btrfs_destroy_delayed_refs(trans->transaction);
> > > + return ret;
> > > +}
> > > +
> > > +int btrfs_test_delayed_refs(u32 sectorsize, u32 nodesize)
> > > +{
> > > + struct btrfs_transaction transaction;
> > > + struct btrfs_trans_handle trans;
> >
> > Build complains
> >
> > CC [M] fs/btrfs/tests/delayed-refs-tests.o
> > fs/btrfs/tests/delayed-refs-tests.c: In function ‘btrfs_test_delayed_refs’:
> > fs/btrfs/tests/delayed-refs-tests.c:1012:1: warning: the frame size of 2056 bytes is larger than 2048 bytes [-Wframe-larger-than=]
> >
> > Please change that to kmalloc so we don't get warning reports on configs that
> > bloat data structures. On release config the sizes are like 480 + 168, which is ok.
>
> Fixed in for-next.
Aaaand you're cleaning up all my messes, thanks for this,
Josef
next prev parent reply other threads:[~2024-12-09 14:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 19:57 [PATCH 0/2] btrfs: add a delayed ref self test Josef Bacik
2024-11-14 19:57 ` [PATCH 1/2] btrfs: move select_delayed_ref and export it Josef Bacik
2024-11-14 19:57 ` [PATCH 2/2] btrfs: add delayed ref self tests Josef Bacik
2024-11-14 22:23 ` Boris Burkov
2024-11-15 14:42 ` Josef Bacik
2024-11-15 18:33 ` David Sterba
2024-12-06 19:51 ` David Sterba
2024-12-09 14:01 ` Josef Bacik [this message]
2024-11-17 3:59 ` kernel test robot
2024-11-26 15:34 ` David Sterba
2024-11-14 22:24 ` [PATCH 0/2] btrfs: add a delayed ref self test Boris Burkov
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=20241209140144.GC2840216@perftesting \
--to=josef@toxicpanda.com \
--cc=dsterba@suse.cz \
--cc=kernel-team@fb.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.