diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2018-04-10 16:29:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 10:28:31 -0700 |
commit | bc8755ba66325cb5874eef81d935e91c331d0b1d (patch) | |
tree | 6f7d4cdc25031e9db54d1bde4211cfa333ee7d7f /mm | |
parent | 09a913a7a947fb6f624379e9da22670994942b85 (diff) | |
download | linux-bc8755ba66325cb5874eef81d935e91c331d0b1d.tar.gz linux-bc8755ba66325cb5874eef81d935e91c331d0b1d.tar.bz2 linux-bc8755ba66325cb5874eef81d935e91c331d0b1d.zip |
mm: check __highest_present_section_nr directly in memory_dev_init()
__highest_present_section_nr is a more strict boundary than
NR_MEM_SECTIONS. So checking __highest_present_section_nr directly is
enough.
Link: http://lkml.kernel.org/r/20180330032044.21647-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions