Contributors: 14
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
MinChan Kim |
66 |
33.17% |
3 |
15.00% |
Kamezawa Hiroyuki |
38 |
19.10% |
1 |
5.00% |
Michal Nazarewicz |
18 |
9.05% |
2 |
10.00% |
Mel Gorman |
16 |
8.04% |
4 |
20.00% |
JoonSoo Kim |
16 |
8.04% |
1 |
5.00% |
Yasunori Goto |
12 |
6.03% |
1 |
5.00% |
Cody P Schafer |
10 |
5.03% |
1 |
5.00% |
Michal Hocko |
9 |
4.52% |
1 |
5.00% |
Zi Yan |
5 |
2.51% |
1 |
5.00% |
David Hildenbrand |
3 |
1.51% |
1 |
5.00% |
Wen Congyang |
2 |
1.01% |
1 |
5.00% |
Johannes Weiner |
2 |
1.01% |
1 |
5.00% |
Greg Kroah-Hartman |
1 |
0.50% |
1 |
5.00% |
Liu Ping Fan |
1 |
0.50% |
1 |
5.00% |
Total |
199 |
|
20 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_PAGEISOLATION_H
#define __LINUX_PAGEISOLATION_H
#ifdef CONFIG_MEMORY_ISOLATION
static inline bool has_isolate_pageblock(struct zone *zone)
{
return zone->nr_isolate_pageblock;
}
static inline bool is_migrate_isolate_page(struct page *page)
{
return get_pageblock_migratetype(page) == MIGRATE_ISOLATE;
}
static inline bool is_migrate_isolate(int migratetype)
{
return migratetype == MIGRATE_ISOLATE;
}
#else
static inline bool has_isolate_pageblock(struct zone *zone)
{
return false;
}
static inline bool is_migrate_isolate_page(struct page *page)
{
return false;
}
static inline bool is_migrate_isolate(int migratetype)
{
return false;
}
#endif
#define MEMORY_OFFLINE 0x1
#define REPORT_FAILURE 0x2
void set_pageblock_migratetype(struct page *page, int migratetype);
bool move_freepages_block_isolate(struct zone *zone, struct page *page,
int migratetype);
int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
int migratetype, int flags, gfp_t gfp_flags);
void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
int migratetype);
int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
int isol_flags);
#endif