Home
last modified time | relevance | path

Searched refs:migratetype (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/mm/
Dpage_isolation.c34 int migratetype, int flags) in has_unmovable_pages() argument
49 if (is_migrate_cma(migratetype)) in has_unmovable_pages()
147 static int set_migratetype_isolate(struct page *page, int migratetype, int isol_flags, in set_migratetype_isolate() argument
179 migratetype, isol_flags); in set_migratetype_isolate()
206 static void unset_migratetype_isolate(struct page *page, int migratetype) in unset_migratetype_isolate() argument
255 nr_pages = move_freepages_block(zone, page, migratetype, NULL); in unset_migratetype_isolate()
256 __mod_zone_freepage_state(zone, nr_pages, migratetype); in unset_migratetype_isolate()
258 set_pageblock_migratetype(page, migratetype); in unset_migratetype_isolate()
260 __putback_isolated_page(page, order, migratetype); in unset_migratetype_isolate()
307 int migratetype) in isolate_single_pageblock() argument
[all …]
Ddebug_page_alloc.c36 int migratetype) in __set_page_guard() argument
45 if (!is_migrate_isolate(migratetype)) in __set_page_guard()
46 __mod_zone_freepage_state(zone, -(1 << order), migratetype); in __set_page_guard()
52 int migratetype) in __clear_page_guard() argument
57 if (!is_migrate_isolate(migratetype)) in __clear_page_guard()
58 __mod_zone_freepage_state(zone, (1 << order), migratetype); in __clear_page_guard()
Dpage_alloc.c220 static inline void set_pcppage_migratetype(struct page *page, int migratetype) in set_pcppage_migratetype() argument
222 page->index = migratetype; in set_pcppage_migratetype()
430 void set_pageblock_migratetype(struct page *page, int migratetype) in set_pageblock_migratetype() argument
433 migratetype < MIGRATE_PCPTYPES)) in set_pageblock_migratetype()
434 migratetype = MIGRATE_UNMOVABLE; in set_pageblock_migratetype()
436 set_pfnblock_flags_mask(page, (unsigned long)migratetype, in set_pageblock_migratetype()
520 static inline unsigned int order_to_pindex(int migratetype, int order) in order_to_pindex() argument
531 return (MIGRATE_PCPTYPES * order) + migratetype; in order_to_pindex()
624 int order, int migratetype) in compaction_capture() argument
630 if (is_migrate_cma(migratetype) || in compaction_capture()
[all …]
Dshuffle.c92 int migratetype, retry; in __shuffle_zone() local
129 migratetype = get_pageblock_migratetype(page_i); in __shuffle_zone()
130 if (get_pageblock_migratetype(page_j) != migratetype) { in __shuffle_zone()
Dinternal.h246 int migratetype; member
495 int migratetype; /* migratetype of direct compactor */ member
539 int migratetype, bool only_stealable, bool *can_steal);
541 static inline bool free_area_empty(struct free_area *area, int migratetype) in free_area_empty() argument
543 return list_empty(&area->free_list[migratetype]); in free_area_empty()
881 static inline bool is_migrate_highatomic(enum migratetype migratetype) in is_migrate_highatomic() argument
883 return migratetype == MIGRATE_HIGHATOMIC; in is_migrate_highatomic()
Dcompaction.c1338 if (cc->migratetype == MIGRATE_MOVABLE) in suitable_migration_source()
1341 return block_mt == cc->migratetype; in suitable_migration_source()
1888 if (cc->direct_compaction && cc->migratetype != MIGRATE_MOVABLE) in fast_find_migrateblock()
2172 const int migratetype = cc->migratetype; in __compact_finished() local
2233 if (!free_area_empty(area, migratetype)) in __compact_finished()
2238 if (migratetype == MIGRATE_MOVABLE && in __compact_finished()
2246 if (find_suitable_fallback(area, order, migratetype, in __compact_finished()
2402 cc->migratetype = gfp_migratetype(cc->gfp_mask); in compact_zone()
Dmemory_hotplug.c751 struct vmem_altmap *altmap, int migratetype) in move_pfn_range_to_zone() argument
783 MEMINIT_HOTPLUG, altmap, migratetype); in move_pfn_range_to_zone()
Dmm_init.c851 struct vmem_altmap *altmap, int migratetype) in memmap_init_range() argument
902 set_pageblock_migratetype(page, migratetype); in memmap_init_range()
/linux-6.6.21/include/linux/
Dpage-isolation.h14 static inline bool is_migrate_isolate(int migratetype) in is_migrate_isolate() argument
16 return migratetype == MIGRATE_ISOLATE; in is_migrate_isolate()
27 static inline bool is_migrate_isolate(int migratetype) in is_migrate_isolate() argument
36 void set_pageblock_migratetype(struct page *page, int migratetype);
38 int migratetype, int *num_movable);
41 int migratetype, int flags, gfp_t gfp_flags);
44 int migratetype);
Dmmzone.h45 enum migratetype { enum
74 # define is_migrate_cma(migratetype) unlikely((migratetype) == MIGRATE_CMA) argument
77 # define is_migrate_cma(migratetype) false argument
Dvmstat.h491 int migratetype) in __mod_zone_freepage_state() argument
494 if (is_migrate_cma(migratetype)) in __mod_zone_freepage_state()
Dmm.h3684 int migratetype);
3686 unsigned int order, int migratetype) in set_page_guard() argument
3690 return __set_page_guard(zone, page, order, migratetype); in set_page_guard()
3694 int migratetype);
3696 unsigned int order, int migratetype) in clear_page_guard() argument
3700 __clear_page_guard(zone, page, order, migratetype); in clear_page_guard()
3710 unsigned int order, int migratetype) { return false; } in set_page_guard() argument
3712 unsigned int order, int migratetype) {} in clear_page_guard() argument
Dmemory_hotplug.h342 struct vmem_altmap *altmap, int migratetype);
Dgfp.h351 unsigned migratetype, gfp_t gfp_mask);
/linux-6.6.21/include/trace/events/
Dkmem.h180 gfp_t gfp_flags, int migratetype),
182 TP_ARGS(page, order, gfp_flags, migratetype),
188 __field( int, migratetype )
195 __entry->migratetype = migratetype;
202 __entry->migratetype,
208 TP_PROTO(struct page *page, unsigned int order, int migratetype,
211 TP_ARGS(page, order, migratetype, percpu_refill),
216 __field( int, migratetype )
223 __entry->migratetype = migratetype;
231 __entry->migratetype,
[all …]
/linux-6.6.21/Documentation/trace/
Devents-kmem.rst49 mm_page_alloc page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s
50 mm_page_alloc_zone_locked page=%p pfn=%lu order=%u migratetype=%d cpu=%d percpu_refill=%d
78 mm_page_alloc_zone_locked page=%p pfn=%lu order=%u migratetype=%d cpu=%d percpu_refill=%d
79 mm_page_pcpu_drain page=%p pfn=%lu order=%d cpu=%d migratetype=%d