|
@@ -2584,7 +2584,7 @@ ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
|
|
|
* that this differs from normal direct-io semantics, which
|
|
* that this differs from normal direct-io semantics, which
|
|
|
* will return -EFOO even if some bytes were written.
|
|
* will return -EFOO even if some bytes were written.
|
|
|
*/
|
|
*/
|
|
|
- if (unlikely(status < 0) && !written) {
|
|
|
|
|
|
|
+ if (unlikely(status < 0)) {
|
|
|
err = status;
|
|
err = status;
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|