]> Git Repo - linux.git/commit
mm, page_alloc: avoid page_to_pfn() when merging buddies
authorVlastimil Babka <[email protected]>
Wed, 22 Feb 2017 23:41:51 +0000 (15:41 -0800)
committerLinus Torvalds <[email protected]>
Thu, 23 Feb 2017 00:41:27 +0000 (16:41 -0800)
commit13ad59df67f19788f6c22985b1a33e466eceb643
tree98644ed581610f3af1d52f01963627e94317f2cd
parent76741e776a37973a3e398d504069b3e55c5cc866
mm, page_alloc: avoid page_to_pfn() when merging buddies

On architectures that allow memory holes, page_is_buddy() has to perform
page_to_pfn() to check for the memory hole.  After the previous patch,
we have the pfn already available in __free_one_page(), which is the
only caller of page_is_buddy(), so move the check there and avoid
page_to_pfn().

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Vlastimil Babka <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c
mm/page_isolation.c
This page took 0.048276 seconds and 4 git commands to generate.