Blame view
include/linux/migrate.h
2.5 KB
b20a35035 [PATCH] page migr... |
1 2 |
#ifndef _LINUX_MIGRATE_H #define _LINUX_MIGRATE_H |
b20a35035 [PATCH] page migr... |
3 |
#include <linux/mm.h> |
906e0be19 page migration: O... |
4 |
#include <linux/mempolicy.h> |
b20a35035 [PATCH] page migr... |
5 |
|
742755a1d [PATCH] page migr... |
6 |
typedef struct page *new_page_t(struct page *, unsigned long private, int **); |
95a402c38 [PATCH] page migr... |
7 |
|
a6bc32b89 mm: compaction: i... |
8 9 10 11 12 13 14 15 16 17 18 19 |
/* * MIGRATE_ASYNC means never block * MIGRATE_SYNC_LIGHT in the current implementation means to allow blocking * on most operations but not ->writepage as the potential stall time * is too significant * MIGRATE_SYNC will block when migrating pages */ enum migrate_mode { MIGRATE_ASYNC, MIGRATE_SYNC_LIGHT, MIGRATE_SYNC, }; |
906e0be19 page migration: O... |
20 |
#ifdef CONFIG_MIGRATION |
64cdd548f mm: cleanup: remo... |
21 |
#define PAGE_MIGRATION 1 |
e13861d82 mm: remove return... |
22 |
extern void putback_lru_pages(struct list_head *l); |
2d1db3b11 [PATCH] page migr... |
23 |
extern int migrate_page(struct address_space *, |
a6bc32b89 mm: compaction: i... |
24 |
struct page *, struct page *, enum migrate_mode); |
62b61f611 ksm: memory hotre... |
25 |
extern int migrate_pages(struct list_head *l, new_page_t x, |
7f0f24967 mm: migration: cl... |
26 |
unsigned long private, bool offlining, |
a6bc32b89 mm: compaction: i... |
27 |
enum migrate_mode mode); |
290408d4a hugetlb: hugepage... |
28 |
extern int migrate_huge_pages(struct list_head *l, new_page_t x, |
7f0f24967 mm: migration: cl... |
29 |
unsigned long private, bool offlining, |
a6bc32b89 mm: compaction: i... |
30 |
enum migrate_mode mode); |
95a402c38 [PATCH] page migr... |
31 |
|
2d1db3b11 [PATCH] page migr... |
32 33 |
extern int fail_migrate_page(struct address_space *, struct page *, struct page *); |
b20a35035 [PATCH] page migr... |
34 35 |
extern int migrate_prep(void); |
748446bb6 mm: compaction: m... |
36 |
extern int migrate_prep_local(void); |
7b2259b3e [PATCH] page migr... |
37 38 39 |
extern int migrate_vmas(struct mm_struct *mm, const nodemask_t *from, const nodemask_t *to, unsigned long flags); |
290408d4a hugetlb: hugepage... |
40 41 42 |
extern void migrate_page_copy(struct page *newpage, struct page *page); extern int migrate_huge_page_move_mapping(struct address_space *mapping, struct page *newpage, struct page *page); |
b20a35035 [PATCH] page migr... |
43 |
#else |
64cdd548f mm: cleanup: remo... |
44 |
#define PAGE_MIGRATION 0 |
e13861d82 mm: remove return... |
45 |
static inline void putback_lru_pages(struct list_head *l) {} |
95a402c38 [PATCH] page migr... |
46 |
static inline int migrate_pages(struct list_head *l, new_page_t x, |
7f0f24967 mm: migration: cl... |
47 |
unsigned long private, bool offlining, |
a6bc32b89 mm: compaction: i... |
48 |
enum migrate_mode mode) { return -ENOSYS; } |
290408d4a hugetlb: hugepage... |
49 |
static inline int migrate_huge_pages(struct list_head *l, new_page_t x, |
7f0f24967 mm: migration: cl... |
50 |
unsigned long private, bool offlining, |
a6bc32b89 mm: compaction: i... |
51 |
enum migrate_mode mode) { return -ENOSYS; } |
9bf9e89c3 [PATCH] migrate_p... |
52 |
|
b20a35035 [PATCH] page migr... |
53 |
static inline int migrate_prep(void) { return -ENOSYS; } |
748446bb6 mm: compaction: m... |
54 |
static inline int migrate_prep_local(void) { return -ENOSYS; } |
b20a35035 [PATCH] page migr... |
55 |
|
7b2259b3e [PATCH] page migr... |
56 57 58 59 60 61 |
static inline int migrate_vmas(struct mm_struct *mm, const nodemask_t *from, const nodemask_t *to, unsigned long flags) { return -ENOSYS; } |
290408d4a hugetlb: hugepage... |
62 63 |
static inline void migrate_page_copy(struct page *newpage, struct page *page) {} |
6f39ce056 Fix build error w... |
64 |
static inline int migrate_huge_page_move_mapping(struct address_space *mapping, |
290408d4a hugetlb: hugepage... |
65 66 67 68 |
struct page *newpage, struct page *page) { return -ENOSYS; } |
b20a35035 [PATCH] page migr... |
69 70 71 72 73 74 |
/* Possible settings for the migrate_page() method in address_operations */ #define migrate_page NULL #define fail_migrate_page NULL #endif /* CONFIG_MIGRATION */ #endif /* _LINUX_MIGRATE_H */ |