From: Fabian Frederick Date: Thu, 26 Jun 2014 00:42:32 +0000 (+1000) Subject: mm/internal.h: use nth_page X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3081f25b6a4ff2eeb5c783a2d54c3d66d2c5813a;p=karo-tx-linux.git mm/internal.h: use nth_page Use nth_page instead of pfn_to_page(page_to_pfn Signed-off-by: Fabian Frederick Cc: Rik van Riel Signed-off-by: Andrew Morton --- diff --git a/mm/internal.h b/mm/internal.h index 7f22a11fcc66..a1b651b11c5f 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -247,7 +247,7 @@ static inline void mlock_migrate_page(struct page *new, struct page *old) { } static inline struct page *mem_map_offset(struct page *base, int offset) { if (unlikely(offset >= MAX_ORDER_NR_PAGES)) - return pfn_to_page(page_to_pfn(base) + offset); + return nth_page(base, offset); return base + offset; }