Lines Matching refs:freelist
71 static unsigned long release_freepages(struct list_head *freelist) in release_freepages() argument
76 list_for_each_entry_safe(page, next, freelist, lru) { in release_freepages()
556 struct list_head *freelist, in isolate_freepages_block() argument
636 list_add_tail(&page->lru, freelist); in isolate_freepages_block()
704 LIST_HEAD(freelist); in isolate_freepages_range()
736 block_end_pfn, &freelist, 0, true); in isolate_freepages_range()
754 split_map_pages(&freelist); in isolate_freepages_range()
758 release_freepages(&freelist); in isolate_freepages_range()
1218 move_freelist_head(struct list_head *freelist, struct page *freepage) in move_freelist_head() argument
1222 if (!list_is_last(freelist, &freepage->lru)) { in move_freelist_head()
1223 list_cut_before(&sublist, freelist, &freepage->lru); in move_freelist_head()
1225 list_splice_tail(&sublist, freelist); in move_freelist_head()
1236 move_freelist_tail(struct list_head *freelist, struct page *freepage) in move_freelist_tail() argument
1240 if (!list_is_first(freelist, &freepage->lru)) { in move_freelist_tail()
1241 list_cut_position(&sublist, freelist, &freepage->lru); in move_freelist_tail()
1243 list_splice_tail(&sublist, freelist); in move_freelist_tail()
1350 struct list_head *freelist; in fast_isolate_freepages() local
1360 freelist = &area->free_list[MIGRATE_MOVABLE]; in fast_isolate_freepages()
1361 list_for_each_entry_reverse(freepage, freelist, lru) { in fast_isolate_freepages()
1399 move_freelist_head(freelist, freepage); in fast_isolate_freepages()
1475 struct list_head *freelist = &cc->freepages; in isolate_freepages() local
1534 block_end_pfn, freelist, stride, false); in isolate_freepages()
1577 split_map_pages(freelist); in isolate_freepages()
1717 struct list_head *freelist; in fast_find_migrateblock() local
1725 freelist = &area->free_list[MIGRATE_MOVABLE]; in fast_find_migrateblock()
1726 list_for_each_entry(freepage, freelist, lru) { in fast_find_migrateblock()
1730 move_freelist_tail(freelist, freepage); in fast_find_migrateblock()
1746 move_freelist_tail(freelist, freepage); in fast_find_migrateblock()