Commit 62898dd1 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix swallowing of data in buffered write path



In __bch2_buffered_write, if we fail to write to an entire !uptodate
folio, we have to back out the write, bail out and retry.

But we were missing an iov_iter_revert() call, so the data written to
the folio was lost and the rest of the write shifted to the wrong
offset.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8c9b0f7b
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