From: Fabian Frederick Date: Wed, 6 Aug 2014 23:05:17 +0000 (-0700) Subject: mm/internal.h: use nth_page X-Git-Tag: v4.9.8~5947^2~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc7f84c0e67c0ca90b6d0e95cc293ed5d8ad30c4;p=platform%2Fkernel%2Flinux-rpi3.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 Signed-off-by: Linus Torvalds --- diff --git a/mm/internal.h b/mm/internal.h index 7f22a11f..a1b651b 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; }