mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
2776369266
commit
c437e15379
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user