Skip to content
Commit eb54d269 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix truncate sometimes failing and returning 1



__bch_truncate_folio() may return 1 to indicate dirtyness of the folio
being truncated, needed for fpunch to get the i_size writes correct.

But truncate was forgetting to clear ret, and sometimes returning it as
an error.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 677bdb73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment