diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-10-16 05:10:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-16 20:11:19 +0200 |
commit | ab130f9108dcf2062a44f9f0706824ef2e30492e (patch) | |
tree | 07e3283496e2772048141c882b1ef633364dec0f /mm/shuffle.c | |
parent | include/linux/mmzone.h: remove unused early_pfn_valid() (diff) | |
download | linux-ab130f9108dcf2062a44f9f0706824ef2e30492e.tar.xz linux-ab130f9108dcf2062a44f9f0706824ef2e30492e.zip |
mm: rename page_order() to buddy_order()
The current page_order() can only be called on pages in the buddy
allocator. For compound pages, you have to use compound_order(). This is
confusing and led to a bug, so rename page_order() to buddy_order().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20201001152259.14932-2-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shuffle.c')
-rw-r--r-- | mm/shuffle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shuffle.c b/mm/shuffle.c index 9b5cd4b004b0..9c2e145a747a 100644 --- a/mm/shuffle.c +++ b/mm/shuffle.c @@ -60,7 +60,7 @@ static struct page * __meminit shuffle_valid_page(struct zone *zone, * ...is the page on the same list as the page we will * shuffle it with? */ - if (page_order(page) != order) + if (buddy_order(page) != order) return NULL; return page; |