aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 900edfaf6df5..8163e0439493 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2584,7 +2584,7 @@ ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
2584 * that this differs from normal direct-io semantics, which 2584 * that this differs from normal direct-io semantics, which
2585 * will return -EFOO even if some bytes were written. 2585 * will return -EFOO even if some bytes were written.
2586 */ 2586 */
2587 if (unlikely(status < 0) && !written) { 2587 if (unlikely(status < 0)) {
2588 err = status; 2588 err = status;
2589 goto out; 2589 goto out;
2590 } 2590 }