Commit 97535cd8 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix data corruption on -ENOSPC in buffered write path



Found by generic/299: When we have to truncate a write due to -ENOSPC,
we may have to read in the folio we're writing to if we're now no longer
doing a complete write to a !uptodate folio.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 335d318e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment