Re: [patch -mm v2] cpusets: add memory_slab_hardwall flag

From: David Rientjes
Date: Mon Mar 09 2009 - 22:29:20 EST


On Mon, 9 Mar 2009, David Rientjes wrote:

> diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h
> --- a/include/linux/cpuset.h
> +++ b/include/linux/cpuset.h
> @@ -86,6 +86,12 @@ static inline int cpuset_do_slab_mem_spread(void)
> return current->flags & PF_SPREAD_SLAB;
> }
>
> +static inline int current_cpuset_object_allowed(int node, gfp_t flags)
> +{
> + return !(current->flags & PF_SPREAD_SLAB) ||
> + cpuset_node_allowed_hardwall(node, flags);
> +}
> +
> extern int current_cpuset_is_being_rebound(void);
>
> extern void rebuild_sched_domains(void);

That should be PF_SLAB_HARDWALL.
---
include/linux/cpuset.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h
index d255e68..4db22d1 100644
--- a/include/linux/cpuset.h
+++ b/include/linux/cpuset.h
@@ -88,7 +88,7 @@ static inline int cpuset_do_slab_mem_spread(void)

static inline int current_cpuset_object_allowed(int node, gfp_t flags)
{
- return !(current->flags & PF_SPREAD_SLAB) ||
+ return !(current->flags & PF_SLAB_HARDWALL) ||
cpuset_node_allowed_hardwall(node, flags);
}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/