X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Ffilemap.c;h=90effcdf948d6c463afa817e277e7eae94b657a6;hb=50cf5534df852d30f1fd07030c2084b708a88308;hp=f501b56ec2c6e2c3d3c662669afbffc9017797b5;hpb=06b49ea43c0cdd22625883e555e45e66ef29e201;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; }