mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] Drop __get_zone_counts()
Values are readily available via ZVC per node and global sums. Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9195481d2f
commit
05a0416be2
4 changed files with 4 additions and 23 deletions
|
|
@ -575,10 +575,6 @@ void handle_ra_miss(struct address_space *mapping,
|
|||
*/
|
||||
unsigned long max_sane_readahead(unsigned long nr)
|
||||
{
|
||||
unsigned long active;
|
||||
unsigned long inactive;
|
||||
unsigned long free;
|
||||
|
||||
__get_zone_counts(&active, &inactive, &free, NODE_DATA(numa_node_id()));
|
||||
return min(nr, (inactive + free) / 2);
|
||||
return min(nr, (node_page_state(numa_node_id(), NR_INACTIVE)
|
||||
+ node_page_state(numa_node_id(), NR_FREE_PAGES)) / 2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue