mm: use zonelist name instead of using hardcoded index
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 10 Sep 2016 10:34:10 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:10 +0000 (20:34 +1000)
commit3e4c253a573897b1e1eb18e82c2e57ed2e269386
tree51294dd8a7b8d149c4ea74f7241a7d0e5440b2bf
parent4123f3b14011656828be52993feb8c8a556449eb
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 <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempolicy.c
mm/page_alloc.c
mm/vmscan.c
This page took 0.025016 seconds and 5 git commands to generate.