diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-09-09 16:18:12 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-09-09 16:18:12 -0400 |
commit | 805c547ee3cdc2ef6a5f7556fdf449ced2e48680 (patch) | |
tree | abeae409739a576291942281f9acf56725d73a1a /include | |
parent | 418e60bb6948a4cf6eb7c737bea21c2314619c73 (diff) |
TODO: Fix condition checks in replicate_page_move_mapping()wip-shared-lib
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/migrate.h | 8 | ||||
-rw-r--r-- | include/litmus/replicate_lib.h | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h index cac1c0904d5f..b16047b82472 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h | |||
@@ -33,6 +33,8 @@ extern int migrate_page(struct address_space *, | |||
33 | struct page *, struct page *, enum migrate_mode); | 33 | struct page *, struct page *, enum migrate_mode); |
34 | extern int migrate_pages(struct list_head *l, new_page_t new, free_page_t free, | 34 | extern int migrate_pages(struct list_head *l, new_page_t new, free_page_t free, |
35 | unsigned long private, enum migrate_mode mode, int reason); | 35 | unsigned long private, enum migrate_mode mode, int reason); |
36 | extern int replicate_pages(struct list_head *l, new_page_t new, free_page_t free, | ||
37 | unsigned long private, enum migrate_mode mode, int reason); | ||
36 | 38 | ||
37 | extern int migrate_prep(void); | 39 | extern int migrate_prep(void); |
38 | extern int migrate_prep_local(void); | 40 | extern int migrate_prep_local(void); |
@@ -50,7 +52,11 @@ static inline int migrate_pages(struct list_head *l, new_page_t new, | |||
50 | free_page_t free, unsigned long private, enum migrate_mode mode, | 52 | free_page_t free, unsigned long private, enum migrate_mode mode, |
51 | int reason) | 53 | int reason) |
52 | { return -ENOSYS; } | 54 | { return -ENOSYS; } |
53 | 55 | static inline int replicate_pages(struct list_head *l, new_page_t new, | |
56 | free_page_t free, unsigned long private, enum migrate_mode mode, | ||
57 | int reason) | ||
58 | { return -ENOSYS; } | ||
59 | |||
54 | static inline int migrate_prep(void) { return -ENOSYS; } | 60 | static inline int migrate_prep(void) { return -ENOSYS; } |
55 | static inline int migrate_prep_local(void) { return -ENOSYS; } | 61 | static inline int migrate_prep_local(void) { return -ENOSYS; } |
56 | 62 | ||
diff --git a/include/litmus/replicate_lib.h b/include/litmus/replicate_lib.h index af2af36b6b79..480ce4631529 100644 --- a/include/litmus/replicate_lib.h +++ b/include/litmus/replicate_lib.h | |||
@@ -7,8 +7,12 @@ | |||
7 | 7 | ||
8 | struct shared_lib_page { | 8 | struct shared_lib_page { |
9 | struct page *p_page; | 9 | struct page *p_page; |
10 | unsigned long pfn; | 10 | struct page *r_page; |
11 | unsigned long p_pfn; | ||
12 | unsigned long r_pfn; | ||
11 | struct list_head list; | 13 | struct list_head list; |
12 | }; | 14 | }; |
13 | 15 | ||
16 | extern struct list_head shared_lib_pages; | ||
17 | |||
14 | #endif | 18 | #endif |