diff options
author | Pavel Tatashin <pavel.tatashin@microsoft.com> | 2018-10-26 15:10:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-26 16:38:15 -0700 |
commit | ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9 (patch) | |
tree | 55f96f2ba77f8adec219a61800e1ad7eafcba470 /mm/memory-failure.c | |
parent | 907ec5fca3dc38d37737de826f06f25b063aa08e (diff) | |
download | linux-stable-ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9.tar.gz linux-stable-ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9.tar.bz2 linux-stable-ec393a0f014eaf688a3dbe8c8a4cbb52d7f535f9.zip |
mm: return zero_resv_unavail optimization
When checking for valid pfns in zero_resv_unavail(), it is not necessary
to verify that pfns within pageblock_nr_pages ranges are valid, only the
first one needs to be checked. This is because memory for pages are
allocated in contiguous chunks that contain pageblock_nr_pages struct
pages.
Link: http://lkml.kernel.org/r/20181002143821.5112-3-msys.mizuma@gmail.com
Signed-off-by: Pavel Tatashin <pavel.tatashin@microsoft.com>
Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Reviewed-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions