Commit 34fdcf06 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Check for folios that don't have bch_folio attached



With large folios, it's now incidentally possible to end up with a
clean, uptodate folio in the page cache that doesn't have a bch_folio
attached, if a folio has to be split.

This patch fixes __bch2_truncate_folio() to check for this; other code
paths appear to handle it.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 9567413c
Supports Markdown
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