]> git.baikalelectronics.ru Git - kernel.git/commit
__generic_file_write_iter(): fix handling of sync error after DIO
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Aug 2014 16:39:16 +0000 (12:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 Aug 2014 16:27:40 +0000 (12:27 -0400)
commit0ed5a31bf3a71d0ca019ce2988dca4d2c9012531
treefc2e8ba9515c9df6a651536b3cc00f4256f97852
parent9dbecae16735e49885e6fefb5c42e165a0a45f31
__generic_file_write_iter(): fix handling of sync error after DIO

If DIO results in short write and sync write fails, we want to bugger off
whether the DIO part has written anything or not; the logics on the return
will take care of the right return value.

Cc: stable@vger.kernel.org [3.16]
Reported-by: Anton Altaparmakov <aia21@cam.ac.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/filemap.c