diff options
Diffstat (limited to 'include/linux/compaction.h')
-rw-r--r-- | include/linux/compaction.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/linux/compaction.h b/include/linux/compaction.h index 5ac51552d908..cc9f7a428649 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h | |||
@@ -21,7 +21,11 @@ extern int sysctl_extfrag_handler(struct ctl_table *table, int write, | |||
21 | 21 | ||
22 | extern int fragmentation_index(struct zone *zone, unsigned int order); | 22 | extern int fragmentation_index(struct zone *zone, unsigned int order); |
23 | extern unsigned long try_to_compact_pages(struct zonelist *zonelist, | 23 | extern unsigned long try_to_compact_pages(struct zonelist *zonelist, |
24 | int order, gfp_t gfp_mask, nodemask_t *mask); | 24 | int order, gfp_t gfp_mask, nodemask_t *mask, |
25 | bool sync); | ||
26 | extern unsigned long compaction_suitable(struct zone *zone, int order); | ||
27 | extern unsigned long compact_zone_order(struct zone *zone, int order, | ||
28 | gfp_t gfp_mask, bool sync); | ||
25 | 29 | ||
26 | /* Do not skip compaction more than 64 times */ | 30 | /* Do not skip compaction more than 64 times */ |
27 | #define COMPACT_MAX_DEFER_SHIFT 6 | 31 | #define COMPACT_MAX_DEFER_SHIFT 6 |
@@ -54,7 +58,19 @@ static inline bool compaction_deferred(struct zone *zone) | |||
54 | 58 | ||
55 | #else | 59 | #else |
56 | static inline unsigned long try_to_compact_pages(struct zonelist *zonelist, | 60 | static inline unsigned long try_to_compact_pages(struct zonelist *zonelist, |
57 | int order, gfp_t gfp_mask, nodemask_t *nodemask) | 61 | int order, gfp_t gfp_mask, nodemask_t *nodemask, |
62 | bool sync) | ||
63 | { | ||
64 | return COMPACT_CONTINUE; | ||
65 | } | ||
66 | |||
67 | static inline unsigned long compaction_suitable(struct zone *zone, int order) | ||
68 | { | ||
69 | return COMPACT_SKIPPED; | ||
70 | } | ||
71 | |||
72 | static inline unsigned long compact_zone_order(struct zone *zone, int order, | ||
73 | gfp_t gfp_mask, bool sync) | ||
58 | { | 74 | { |
59 | return COMPACT_CONTINUE; | 75 | return COMPACT_CONTINUE; |
60 | } | 76 | } |