[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPjX3FeEvwkKWPB+DqZYufmjyAuyXxzHmtL+S6z7o971=yMxWw@mail.gmail.com>
Date: Tue, 13 May 2025 09:50:10 +0200
From: Daniel Vacek <neelx@...e.com>
To: Boris Burkov <boris@....io>
Cc: Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>, David Sterba <dsterba@...e.com>,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: correct the assert for subpage case
On Mon, 12 May 2025 at 19:53, Boris Burkov <boris@....io> wrote:
>
> On Mon, May 12, 2025 at 03:28:50PM +0200, Daniel Vacek wrote:
> > The assert is only true in !subpage case. We can either fix it this way
> > or completely remove it.
> >
> > This fixes and should be folded into:
> > btrfs: fix broken drop_caches on extent buffer folios
> >
> > Signed-off-by: Daniel Vacek <neelx@...e.com>
>
> I would lean towards removing it, personally. But LGTM, thanks.
Good. Let's remove it then. Will you amend your patch?
> Reviewed-by: Boris Burkov <boris@....io>
>
> > ---
> > fs/btrfs/extent_io.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
> > index 80a8563a25add..3b3f73894ffe2 100644
> > --- a/fs/btrfs/extent_io.c
> > +++ b/fs/btrfs/extent_io.c
> > @@ -3411,7 +3411,7 @@ struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
> > continue;
> > }
> >
> > - ASSERT(!folio_test_private(folio));
> > + ASSERT(!btrfs_meta_is_subpage(fs_info) && !folio_test_private(folio));
> > folio_put(folio);
> > eb->folios[i] = NULL;
> > }
> > --
> > 2.47.2
> >
Powered by blists - more mailing lists