diff options
author | Alexander Kuleshov | 2016-05-21 01:57:35 +0200 |
---|---|---|
committer | Linus Torvalds | 2016-05-21 02:58:30 +0200 |
commit | f705ac4b39f30a6a5f8411a42114758f4d4655bc (patch) | |
tree | 9a08e6acd82c775da9622427c604c17c24a60c7b /mm/vmalloc.c | |
parent | mm/memory-failure.c: replace "MCE" with "Memory failure" (diff) | |
download | kernel-qcow2-linux-f705ac4b39f30a6a5f8411a42114758f4d4655bc.tar.gz kernel-qcow2-linux-f705ac4b39f30a6a5f8411a42114758f4d4655bc.tar.xz kernel-qcow2-linux-f705ac4b39f30a6a5f8411a42114758f4d4655bc.zip |
mm/memblock.c: move memblock_{add,reserve}_region into memblock_{add,reserve}
memblock_add_region() and memblock_reserve_region() do nothing specific
before the call of memblock_add_range(), only print debug output.
We can do the same in memblock_add() and memblock_reserve() since both
memblock_add_region() and memblock_reserve_region() are not used by
anybody outside of memblock.c and memblock_{add,reserve}() have the same
set of flags and nids.
Since memblock_add_region() and memblock_reserve_region() will be
inlined, there will not be functional changes, but will improve code
readability a little.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions