]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use zonelist name instead of using hardcoded index
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 7 Oct 2016 23:59:12 +0000 (16:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Oct 2016 01:46:28 +0000 (18:46 -0700)
commit0da12fe585396c97edd2a3f3dee618ee96d6adb4
tree926815887c2fb79ba1d6988f9c10ee6b79a96ea6
parent941e657ecadbc19bda0839ec89748470d301b8f8
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c
mm/page_alloc.c
mm/vmscan.c