|
@@ -1813,7 +1813,7 @@ static void prep_new_page(struct page *page, unsigned int order, gfp_t gfp_flags
|
|
* Go through the free lists for the given migratetype and remove
|
|
* Go through the free lists for the given migratetype and remove
|
|
* the smallest available page from the freelists
|
|
* the smallest available page from the freelists
|
|
*/
|
|
*/
|
|
-static inline
|
|
|
|
|
|
+static __always_inline
|
|
struct page *__rmqueue_smallest(struct zone *zone, unsigned int order,
|
|
struct page *__rmqueue_smallest(struct zone *zone, unsigned int order,
|
|
int migratetype)
|
|
int migratetype)
|
|
{
|
|
{
|
|
@@ -1857,7 +1857,7 @@ static int fallbacks[MIGRATE_TYPES][4] = {
|
|
};
|
|
};
|
|
|
|
|
|
#ifdef CONFIG_CMA
|
|
#ifdef CONFIG_CMA
|
|
-static struct page *__rmqueue_cma_fallback(struct zone *zone,
|
|
|
|
|
|
+static __always_inline struct page *__rmqueue_cma_fallback(struct zone *zone,
|
|
unsigned int order)
|
|
unsigned int order)
|
|
{
|
|
{
|
|
return __rmqueue_smallest(zone, order, MIGRATE_CMA);
|
|
return __rmqueue_smallest(zone, order, MIGRATE_CMA);
|
|
@@ -2238,7 +2238,7 @@ static bool unreserve_highatomic_pageblock(const struct alloc_context *ac,
|
|
* deviation from the rest of this file, to make the for loop
|
|
* deviation from the rest of this file, to make the for loop
|
|
* condition simpler.
|
|
* condition simpler.
|
|
*/
|
|
*/
|
|
-static inline bool
|
|
|
|
|
|
+static __always_inline bool
|
|
__rmqueue_fallback(struct zone *zone, int order, int start_migratetype)
|
|
__rmqueue_fallback(struct zone *zone, int order, int start_migratetype)
|
|
{
|
|
{
|
|
struct free_area *area;
|
|
struct free_area *area;
|
|
@@ -2310,8 +2310,8 @@ do_steal:
|
|
* Do the hard work of removing an element from the buddy allocator.
|
|
* Do the hard work of removing an element from the buddy allocator.
|
|
* Call me with the zone->lock already held.
|
|
* Call me with the zone->lock already held.
|
|
*/
|
|
*/
|
|
-static struct page *__rmqueue(struct zone *zone, unsigned int order,
|
|
|
|
- int migratetype)
|
|
|
|
|
|
+static __always_inline struct page *
|
|
|
|
+__rmqueue(struct zone *zone, unsigned int order, int migratetype)
|
|
{
|
|
{
|
|
struct page *page;
|
|
struct page *page;
|
|
|
|
|