Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc1 /kernel/cgroup_debug.c

Filename:/kernel/cgroup_debug.c
Lines Added:15
Lines Deleted:5
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15 
(Following) 2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6  2.6.26-rc7 

Location
[  2.6.26-rc1
  [  kernel
     o  cgroup_debug.c

Patch

diff --git a/kernel/cgroup_debug.c b/kernel/cgroup_debug.c
index 37301e8..c3dc3ab 100644
--- a/kernel/cgroup_debug.c
+++ b/kernel/cgroup_debug.c
@@ -1,5 +1,5 @@
 /*
- * kernel/ccontainer_debug.c - Example cgroup subsystem that
+ * kernel/cgroup_debug.c - Example cgroup subsystem that
  * exposes debug info
  *
  * Copyright (C) Google Inc, 2007
@@ -62,25 +62,35 @@ static u64 current_css_set_refcount_read(struct cgroup *cont,
    return count;
 }
 
+static u64 releasable_read(struct cgroup *cgrp, struct cftype *cft)
+{
+   return test_bit(CGRP_RELEASABLE, &cgrp->flags);
+}
+
 static struct cftype files[] =  {
    {
       .name = "cgroup_refcount",
-      .read_uint = cgroup_refcount_read,
+      .read_u64 = cgroup_refcount_read,
    },
    {
       .name = "taskcount",
-      .read_uint = taskcount_read,
+      .read_u64 = taskcount_read,
    },
 
    {
       .name = "current_css_set",
-      .read_uint = current_css_set_read,
+      .read_u64 = current_css_set_read,
    },
 
    {
       .name = "current_css_set_refcount",
-      .read_uint = current_css_set_refcount_read,
+      .read_u64 = current_css_set_refcount_read,
    },
+
+   {
+      .name = "releasable",
+      .read_u64 = releasable_read,
+   }
 };
 
 static int debug_populate(struct cgroup_subsys *ss, struct cgroup *cont)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.