Re: [PATCH 0/2] btrfs: fix generic/795 crash for bs > ps cases

Filipe Manana <[email protected]> Fri, 31 Jul 2026 10:22:49 +0100
Newsgroups org.kernel.vger.linux-btrfs
Message-ID <CAL3q7H4giGJqO1MmkdF86xQkH2p6QEhU4QUiAwHuppP6muWQ=w@mail.gmail.com>
On Fri, Jul 31, 2026 at 1:46=E2=80=AFAM Qu Wenruo <[email protected]> wrote:
>
> During my development of the incoming data_size feature, it turns out
> that we have a new crash triggered by the new test case, generic/795 on
> bs > ps cases.
>
> It turns out that for cached inode items (btrfs_delayed_node) we can
> skip the inode mapping flag settings.
>
> This bug is fixed by the first path.
>
> The second patch is to introduce the extra debug ASSERT()s, which
> greatly reduced the search range by showing the mapping's minimal folio
> order.
>
> Qu Wenruo (2):
>   btrfs: initialize inode mapping flags for cached inodes
>   btrfs: add extra ASSERT()s to make sure the folio size is correct

Reviewed-by: Filipe Manana <[email protected]>

Thanks.

>
>  fs/btrfs/extent_io.c | 19 +++++++++++++++++++
>  fs/btrfs/inode.c     |  3 ++-
>  2 files changed, 21 insertions(+), 1 deletion(-)
>
> --
> 2.54.0
>
>