]> git.baikalelectronics.ru Git - kernel.git/commit
mm, page_alloc: Add missing check for memory holes
authorTony Luck <tony.luck@intel.com>
Wed, 8 Mar 2017 17:35:39 +0000 (09:35 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 8 Mar 2017 19:10:10 +0000 (11:10 -0800)
commit08fb5e0d43434a56b35e3ef436c15ae9b3835fae
tree919fe4cb94b39a50fc2a7566e1a9e96b24a0c987
parent11f5b0947ff8b5826ae3b68bcfb4254bdab6a70c
mm, page_alloc: Add missing check for memory holes

Commit d8128c74d2ca ("mm, page_alloc: avoid page_to_pfn() when merging
buddies") moved the check for memory holes out of page_is_buddy() and
had the callers do the check.

But this wasn't done correctly in one place which caused ia64 to crash
very early in boot.

Update to fix that and make ia64 boot again.

[ v2: Vlastimil pointed out we don't need to call page_to_pfn()
      since we already have the result of that in "buddy_pfn" ]

Fixes: d8128c74d2ca ("avoid page_to_pfn() when merging buddies")
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c