summaryrefslogtreecommitdiff
path: root/fs/bcachefs/opts.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-07-09 20:54:58 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:42 +0300
commit912bdf17a849990f7241e294e48629987553b94c (patch)
tree2c4fe845f7e289602db6f598fb1fd7701c778ce1 /fs/bcachefs/opts.c
parent0ba95acc4499c84156144316dfb08d68930cc1a9 (diff)
downloadlinux-912bdf17a849990f7241e294e48629987553b94c.tar.xz
bcachefs: Fix short buffered writes
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> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.c')
0 files changed, 0 insertions, 0 deletions