Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: fix generic/795 crash for bs > ps cases
@ 2026-07-31  0:44 Qu Wenruo
  2026-07-31  0:44 ` [PATCH 1/2] btrfs: initialize inode mapping flags for cached inodes Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2026-07-31  0:44 UTC (permalink / raw)
  To: linux-btrfs

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

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

-- 
2.54.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-31  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31  0:44 [PATCH 0/2] btrfs: fix generic/795 crash for bs > ps cases Qu Wenruo
2026-07-31  0:44 ` [PATCH 1/2] btrfs: initialize inode mapping flags for cached inodes Qu Wenruo
2026-07-31  0:44 ` [PATCH 2/2] btrfs: add extra ASSERT()s to make sure the folio size is correct Qu Wenruo
2026-07-31  9:22 ` [PATCH 0/2] btrfs: fix generic/795 crash for bs > ps cases Filipe Manana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox