diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 0d5f823ce3fc..4ed5c7367b9b 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -237,6 +237,18 @@ struct inode; | |||
237 | #define page_private(page) ((page)->private) | 237 | #define page_private(page) ((page)->private) |
238 | #define set_page_private(page, v) ((page)->private = (v)) | 238 | #define set_page_private(page, v) ((page)->private = (v)) |
239 | 239 | ||
240 | /* It's valid only if the page is free path or free_list */ | ||
241 | static inline void set_freepage_migratetype(struct page *page, int migratetype) | ||
242 | { | ||
243 | set_page_private(page, migratetype); | ||
244 | } | ||
245 | |||
246 | /* It's valid only if the page is free path or free_list */ | ||
247 | static inline int get_freepage_migratetype(struct page *page) | ||
248 | { | ||
249 | return page_private(page); | ||
250 | } | ||
251 | |||
240 | /* | 252 | /* |
241 | * FIXME: take this include out, include page-flags.h in | 253 | * FIXME: take this include out, include page-flags.h in |
242 | * files which need it (119 of them) | 254 | * files which need it (119 of them) |