diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-06 19:05:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:16 -0400 |
commit | bc7f84c0e67c0ca90b6d0e95cc293ed5d8ad30c4 (patch) | |
tree | 874a4f48212e909c1f031ef292f0606883f0eff6 /mm/internal.h | |
parent | 7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836 (diff) |
mm/internal.h: use nth_page
Use nth_page instead of pfn_to_page(page_to_pfn
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { } | |||
247 | static inline struct page *mem_map_offset(struct page *base, int offset) | 247 | static inline struct page *mem_map_offset(struct page *base, int offset) |
248 | { | 248 | { |
249 | if (unlikely(offset >= MAX_ORDER_NR_PAGES)) | 249 | if (unlikely(offset >= MAX_ORDER_NR_PAGES)) |
250 | return pfn_to_page(page_to_pfn(base) + offset); | 250 | return nth_page(base, offset); |
251 | return base + offset; | 251 | return base + offset; |
252 | } | 252 | } |
253 | 253 | ||