projects
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: Add WM8988 CODEC driver
[linux-2.6]
/
mm
/
readahead.c
diff --git
a/mm/readahead.c
b/mm/readahead.c
index
6cbd9a7
..
bec83c1
100644
(file)
--- a/
mm/readahead.c
+++ b/
mm/readahead.c
@@
-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);
}