[PATCH 0/2] btrfs: fix generic/795 crash for bs > ps cases
Qu Wenruo <[email protected]> Fri, 31 Jul 2026 10:14:48 +0930
| Newsgroups | org.kernel.vger.linux-btrfs |
|---|---|
| Message-ID | <[email protected]> |
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