aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/mempolicy.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h
index b972f985a3c5..ed00b278cb93 100644
--- a/include/linux/mempolicy.h
+++ b/include/linux/mempolicy.h
@@ -151,6 +151,14 @@ extern struct mempolicy default_policy;
151extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, 151extern struct zonelist *huge_zonelist(struct vm_area_struct *vma,
152 unsigned long addr); 152 unsigned long addr);
153 153
154extern int policy_zone;
155
156static inline void check_highest_zone(int k)
157{
158 if (k > policy_zone)
159 policy_zone = k;
160}
161
154#else 162#else
155 163
156struct mempolicy {}; 164struct mempolicy {};
@@ -221,6 +229,9 @@ static inline struct zonelist *huge_zonelist(struct vm_area_struct *vma,
221 return NODE_DATA(0)->node_zonelists + gfp_zone(GFP_HIGHUSER); 229 return NODE_DATA(0)->node_zonelists + gfp_zone(GFP_HIGHUSER);
222} 230}
223 231
232static inline void check_highest_zone(int k)
233{
234}
224#endif /* CONFIG_NUMA */ 235#endif /* CONFIG_NUMA */
225#endif /* __KERNEL__ */ 236#endif /* __KERNEL__ */
226 237