mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: use zonelist name instead of using hardcoded index
Use the existing enums instead of hardcoded index when looking at the zonelist. This makes it more readable. No functionality change by this patch. Link: http://lkml.kernel.org/r/1472227078-24852-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com Signed-off-by: Aneesh Kumar K.V <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1b51e65eab
commit
c9634cf012
3 changed files with 6 additions and 6 deletions
|
|
@ -3036,7 +3036,7 @@ unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg,
|
|||
*/
|
||||
nid = mem_cgroup_select_victim_node(memcg);
|
||||
|
||||
zonelist = NODE_DATA(nid)->node_zonelists;
|
||||
zonelist = &NODE_DATA(nid)->node_zonelists[ZONELIST_FALLBACK];
|
||||
|
||||
trace_mm_vmscan_memcg_reclaim_begin(0,
|
||||
sc.may_writepage,
|
||||
|
|
|
|||
Loading…
Reference in a new issue