mm/page_alloc.c: replace set_dma_reserve to set_memory_reserve
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Sat, 10 Sep 2016 10:33:59 +0000 (20:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:33:59 +0000 (20:33 +1000)
commit659e91ed45a2162ebac7fd1f2374dd6dcb3b2fa4
treea87c3a5cbcef339816576b19c8a6063b3d64ad96
parentbb60984dc32ab35f3f617e8d94fe8860ef57cf17
mm/page_alloc.c: replace set_dma_reserve to set_memory_reserve

Expand the scope of the existing dma_reserve to accommodate other memory
reserves too.  Accordingly rename variable dma_reserve to
nr_memory_reserve.

set_memory_reserve() also takes a new parameter that helps to identify if
the current value needs to be incremented.

Link: http://lkml.kernel.org/r/1470330729-6273-1-git-send-email-srikar@linux.vnet.ibm.com
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Suggested-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: Hari Bathini <hbathini@linux.vnet.ibm.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/e820.c
include/linux/mm.h
mm/page_alloc.c
This page took 0.027098 seconds and 5 git commands to generate.