]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/readahead.c
fat: split include/msdos_fs.h
[linux-2.6-omap-h63xx.git] / mm / readahead.c
index 6cbd9a72fde2c8c1e20bd1c3da9144fa0d13d65c..bec83c15a78f61b58a1dfbb74a336b9848b5d876 100644 (file)
@@ -229,7 +229,7 @@ int do_page_cache_readahead(struct address_space *mapping, struct file *filp,
  */
 unsigned long max_sane_readahead(unsigned long nr)
 {
-       return min(nr, (node_page_state(numa_node_id(), NR_INACTIVE)
+       return min(nr, (node_page_state(numa_node_id(), NR_INACTIVE_FILE)
                + node_page_state(numa_node_id(), NR_FREE_PAGES)) / 2);
 }