]> err.no Git - linux-2.6/blobdiff - mm/filemap.c
[GFS2] Speed up scanning of glocks
[linux-2.6] / mm / filemap.c
index 796a5471b4956ff3bfb27ceb0a64323590c49cd8..d9bbea1e87d23a6f153374a4635332c499ce480e 100644 (file)
@@ -9,7 +9,6 @@
  * most "normal" filesystems (but you don't /have/ to use this:
  * the NFS filesystem used to do this differently, for example)
  */
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/compiler.h>
@@ -850,8 +849,6 @@ static void shrink_readahead_size_eio(struct file *filp,
                return;
 
        ra->ra_pages /= 4;
-       printk(KERN_WARNING "Reducing readahead size to %luK\n",
-                       ra->ra_pages << (PAGE_CACHE_SHIFT - 10));
 }
 
 /**
@@ -1184,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;