Commit c437e153 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Add a bch_page_state assert

Seeing an odd bug with page/folio state not being properly initialized,
this is to help track it down.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 27763692
......@@ -2682,6 +2682,8 @@ static int __bch2_truncate_page(struct bch_inode_info *inode,
goto unlock;
}
BUG_ON(!s->uptodate);
if (index != start >> PAGE_SHIFT)
start_offset = 0;
if (index != end >> PAGE_SHIFT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment