]> err.no Git - linux-2.6/blobdiff - mm/filemap.c
[GFS2] Speed up scanning of glocks
[linux-2.6] / mm / filemap.c
index b9a60c43b61a4649f19a418584af345088e74daf..d9bbea1e87d23a6f153374a4635332c499ce480e 100644 (file)
@@ -1181,7 +1181,8 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
                                *ppos = pos + retval;
                }
                file_accessed(filp);
-               goto out;
+               if (retval != 0)
+                       goto out;
        }
 
        retval = 0;