lkml.org 
[lkml]   [2009]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch -mm v2] cpusets: add memory_slab_hardwall flag
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);
}


\
 
 \ /
  Last update: 2009-03-10 03:31    [W:0.091 / U:2.168 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site