X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=mm%2Ffilemap.c;h=90effcdf948d6c463afa817e277e7eae94b657a6;hb=5e6c72396c2c514a761d990011ce1560f0eb71c9;hp=f501b56ec2c6e2c3d3c662669afbffc9017797b5;hpb=34b20e6df6970e36b93f445669ba5ef7a05fe01a;p=karo-tx-linux.git diff --git a/mm/filemap.c b/mm/filemap.c index f501b56ec2c6..90effcdf948d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2602,7 +2602,7 @@ ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from) * that this differs from normal direct-io semantics, which * will return -EFOO even if some bytes were written. */ - if (unlikely(status < 0) && !written) { + if (unlikely(status < 0)) { err = status; goto out; }