summaryrefslogtreecommitdiff
path: root/fs/dax.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-07-09 13:54:58 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2020-07-09 14:54:00 -0400
commit6081343382c1e04c454aae6c2bc1b8131bd67493 (patch)
tree6432a91c31fcbde8ad7365bb27b806a51faa5667 /fs/dax.c
parent65c16cd06892a925c60f198f07b2c2b95b3e7bef (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