X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fmempolicy.h;h=72440f0a443d4869ebbbd68690e662687187cf88;hb=5a40f09baa3d74e9e6f1bd86a9998a10fbba012a;hp=bbd2221923c3a274dae0d13d1425942108831d6d;hpb=a6df590dd8b7644c8e298e3b13442bcd6ceeb739;p=linux-2.6 diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index bbd2221923..72440f0a44 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -28,7 +28,6 @@ #ifdef __KERNEL__ -#include #include #include #include @@ -36,6 +35,7 @@ #include struct vm_area_struct; +struct mm_struct; #ifdef CONFIG_NUMA @@ -147,6 +147,7 @@ extern void mpol_rebind_policy(struct mempolicy *pol, const nodemask_t *new); extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new); extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new); +extern void mpol_fix_fork_child_flag(struct task_struct *p); #define set_cpuset_being_rebound(x) (cpuset_being_rebound = (x)) #ifdef CONFIG_CPUSET @@ -248,6 +249,10 @@ static inline void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new) { } +static inline void mpol_fix_fork_child_flag(struct task_struct *p) +{ +} + #define set_cpuset_being_rebound(x) do {} while (0) static inline struct zonelist *huge_zonelist(struct vm_area_struct *vma,