mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mm: use 'unsigned int' for page order
Let's try to be consistent about data type of page order. [[email protected]: fix build (type of pageblock_order)] [[email protected]: some configs end up with MAX_ORDER and pageblock_order having different types] Signed-off-by: Kirill A. Shutemov <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Reviewed-by: Andrea Arcangeli <[email protected]> Cc: "Paul E. McKenney" <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1d798ca3f1
commit
d00181b96e
5 changed files with 32 additions and 27 deletions
|
|
@ -177,7 +177,7 @@ __find_buddy_index(unsigned long page_idx, unsigned int order)
|
|||
extern int __isolate_free_page(struct page *page, unsigned int order);
|
||||
extern void __free_pages_bootmem(struct page *page, unsigned long pfn,
|
||||
unsigned int order);
|
||||
extern void prep_compound_page(struct page *page, unsigned long order);
|
||||
extern void prep_compound_page(struct page *page, unsigned int order);
|
||||
#ifdef CONFIG_MEMORY_FAILURE
|
||||
extern bool is_free_buddy_page(struct page *page);
|
||||
#endif
|
||||
|
|
@ -235,7 +235,7 @@ int find_suitable_fallback(struct free_area *area, unsigned int order,
|
|||
* page cannot be allocated or merged in parallel. Alternatively, it must
|
||||
* handle invalid values gracefully, and use page_order_unsafe() below.
|
||||
*/
|
||||
static inline unsigned long page_order(struct page *page)
|
||||
static inline unsigned int page_order(struct page *page)
|
||||
{
|
||||
/* PageBuddy() must be checked by the caller */
|
||||
return page_private(page);
|
||||
|
|
|
|||
Loading…
Reference in a new issue