diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-09 13:54:58 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-09 14:54:00 -0400 |
commit | 6081343382c1e04c454aae6c2bc1b8131bd67493 (patch) | |
tree | 6432a91c31fcbde8ad7365bb27b806a51faa5667 /fs/dax.c | |
parent | 65c16cd06892a925c60f198f07b2c2b95b3e7bef (diff) |
bcachefs: Fix short buffered writesbcachefs-buffered-write-fix
In the buffered write path, we have to check for short writes that write
to the full page, where the page wasn't UpToDate; when this happens, the
page is partly garbage, so we have to zero it out and revert that part
of the write.
This check was wrong - we reverted total from copied, but didn't revert
the iov_iter, probably also leading to corrupted writes.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions