aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2016-09-09 16:18:12 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2016-09-09 16:18:12 -0400
commit805c547ee3cdc2ef6a5f7556fdf449ced2e48680 (patch)
treeabeae409739a576291942281f9acf56725d73a1a /include
parent418e60bb6948a4cf6eb7c737bea21c2314619c73 (diff)
TODO: Fix condition checks in replicate_page_move_mapping()wip-shared-lib
Diffstat (limited to 'include')
-rw-r--r--include/linux/migrate.h8
-rw-r--r--include/litmus/replicate_lib.h6
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);
34extern int migrate_pages(struct list_head *l, new_page_t new, free_page_t free, 34extern 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);
36extern 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
37extern int migrate_prep(void); 39extern int migrate_prep(void);
38extern int migrate_prep_local(void); 40extern 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 55static 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
54static inline int migrate_prep(void) { return -ENOSYS; } 60static inline int migrate_prep(void) { return -ENOSYS; }
55static inline int migrate_prep_local(void) { return -ENOSYS; } 61static 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
8struct shared_lib_page { 8struct 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
16extern struct list_head shared_lib_pages;
17
14#endif 18#endif