[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a9ca69ae-fd11-45b1-997b-2186226214e0@gmx.com>
Date: Tue, 13 May 2025 08:10:54 +0930
From: Qu Wenruo <quwenruo.btrfs@....com>
To: Daniel Vacek <neelx@...e.com>, Chris Mason <clm@...com>,
Josef Bacik <josef@...icpanda.com>, David Sterba <dsterba@...e.com>
Cc: linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: correct the assert for subpage case
在 2025/5/12 22:58, Daniel Vacek 写道:
> 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>
Looks good to me.
Although I agree with Boris, it's better to remove the ASSERT().
Subpage is no longer a corner/minor usage anymore, we shouldn't treat
subpage and normal cases differently when possible.
Reviewed-by: Qu Wenruo <wqu@...e.com>
Thanks,
Qu
> ---
> 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;
> }
Powered by blists - more mailing lists