|
@@ -54,9 +54,6 @@ enum compact_result {
|
|
|
struct alloc_context; /* in mm/internal.h */
|
|
|
|
|
|
#ifdef CONFIG_COMPACTION
|
|
|
-extern int PageMovable(struct page *page);
|
|
|
-extern void __SetPageMovable(struct page *page, struct address_space *mapping);
|
|
|
-extern void __ClearPageMovable(struct page *page);
|
|
|
extern int sysctl_compact_memory;
|
|
|
extern int sysctl_compaction_handler(struct ctl_table *table, int write,
|
|
|
void __user *buffer, size_t *length, loff_t *ppos);
|
|
@@ -154,19 +151,6 @@ extern void kcompactd_stop(int nid);
|
|
|
extern void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_idx);
|
|
|
|
|
|
#else
|
|
|
-static inline int PageMovable(struct page *page)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
-static inline void __SetPageMovable(struct page *page,
|
|
|
- struct address_space *mapping)
|
|
|
-{
|
|
|
-}
|
|
|
-
|
|
|
-static inline void __ClearPageMovable(struct page *page)
|
|
|
-{
|
|
|
-}
|
|
|
-
|
|
|
static inline enum compact_result try_to_compact_pages(gfp_t gfp_mask,
|
|
|
unsigned int order, int alloc_flags,
|
|
|
const struct alloc_context *ac,
|