* [2.6 patch] kernel/cpuset.c: cleanups
@ 2007-07-05 23:23 Adrian Bunk
2007-07-06 1:28 ` Paul Jackson
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-07-05 23:23 UTC (permalink / raw)
To: pj, simon.derr; +Cc: linux-kernel
This patch contains the following cleanups:
- make the following needlessly global functions static:
- cpuset_can_attach()
- cpuset_attach()
- cpuset_populate()
- cpuset_post_clone()
- cpuset_create()
- cpuset_destroy()
- remove the unused EXPORT_SYMBOL_GPL(cpuset_mem_spread_node)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
kernel/cpuset.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
--- linux-2.6.22-rc6-mm1/kernel/cpuset.c.old 2007-07-03 15:40:33.000000000 +0200
+++ linux-2.6.22-rc6-mm1/kernel/cpuset.c 2007-07-04 23:32:06.000000000 +0200
@@ -873,8 +873,8 @@
return val;
}
-int cpuset_can_attach(struct container_subsys *ss,
- struct container *cont, struct task_struct *tsk)
+static int cpuset_can_attach(struct container_subsys *ss,
+ struct container *cont, struct task_struct *tsk)
{
struct cpuset *cs = container_cs(cont);
@@ -884,9 +884,9 @@
return security_task_setscheduler(tsk, 0, NULL);
}
-void cpuset_attach(struct container_subsys *ss,
- struct container *cont, struct container *oldcont,
- struct task_struct *tsk)
+static void cpuset_attach(struct container_subsys *ss,
+ struct container *cont, struct container *oldcont,
+ struct task_struct *tsk)
{
cpumask_t cpus;
nodemask_t from, to;
@@ -1163,7 +1163,7 @@
.private = FILE_SPREAD_SLAB,
};
-int cpuset_populate(struct container_subsys *ss, struct container *cont)
+static int cpuset_populate(struct container_subsys *ss, struct container *cont)
{
int err;
@@ -1205,8 +1205,8 @@
* changed to grant parent->cpus_allowed-sibling_cpus_exclusive
* (and likewise for mems) to the new container.
*/
-void cpuset_post_clone(struct container_subsys *ss,
- struct container *container)
+static void cpuset_post_clone(struct container_subsys *ss,
+ struct container *container)
{
struct container *parent, *child;
struct cpuset *cs, *parent_cs;
@@ -1234,7 +1234,7 @@
* Must be called with the mutex on the parent inode held
*/
-int cpuset_create(struct container_subsys *ss, struct container *cont)
+static int cpuset_create(struct container_subsys *ss, struct container *cont)
{
struct cpuset *cs;
struct cpuset *parent;
@@ -1269,7 +1269,7 @@
return 0;
}
-void cpuset_destroy(struct container_subsys *ss, struct container *cont)
+static void cpuset_destroy(struct container_subsys *ss, struct container *cont)
{
struct cpuset *cs = container_cs(cont);
@@ -1726,7 +1726,6 @@
current->cpuset_mem_spread_rotor = node;
return node;
}
-EXPORT_SYMBOL_GPL(cpuset_mem_spread_node);
/**
* cpuset_excl_nodes_overlap - Do we overlap @p's mem_exclusive ancestors?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] kernel/cpuset.c: cleanups
2007-07-05 23:23 [2.6 patch] kernel/cpuset.c: cleanups Adrian Bunk
@ 2007-07-06 1:28 ` Paul Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Paul Jackson @ 2007-07-06 1:28 UTC (permalink / raw)
To: Adrian Bunk, Paul Menage; +Cc: simon.derr, linux-kernel
> - make the following needlessly global functions static:
Ok by me, but this is really the patches of Paul Menage <menage@google.com>,
in particular:
containersv10-make-cpusets-a-client-of-containers.patch
that you dealing with -- adding him to the cc list.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.925.600.0401
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-06 1:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05 23:23 [2.6 patch] kernel/cpuset.c: cleanups Adrian Bunk
2007-07-06 1:28 ` Paul Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox