diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2017-02-22 15:41:51 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-22 16:41:27 -0800 |
commit | 13ad59df67f19788f6c22985b1a33e466eceb643 (patch) | |
tree | 98644ed581610f3af1d52f01963627e94317f2cd /security | |
parent | 76741e776a37973a3e398d504069b3e55c5cc866 (diff) | |
download | blackbird-obmc-linux-13ad59df67f19788f6c22985b1a33e466eceb643.tar.gz blackbird-obmc-linux-13ad59df67f19788f6c22985b1a33e466eceb643.zip |
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/20161216120009.20064-2-vbabka@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions