On 04/09/2013 07:46 AM, Kamezawa Hiroyuki wrote:
> (2013/04/09 12:18), Li Zefan wrote:
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
On 04/09/2013 07:18 AM, Li Zefan wrote:
>>> @@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
>>> *cont, struct cftype *cft,
>>> struct seq_file *m)
>>> {
>>> struct mem_cgroup *memcg;
>>> + char *memcg_name;
>>> + int ret;
>>>
On 04/09/2013 07:18 AM, Li Zefan wrote:
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
struct mem_cgroup *memcg;
+ char *memcg_name;
+ int ret;
+
+ /*
+*
On 04/09/2013 07:46 AM, Kamezawa Hiroyuki wrote:
(2013/04/09 12:18), Li Zefan wrote:
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
struct mem_cgroup *memcg;
On Tue, Apr 09, 2013 at 11:18:21AM +0800, Li Zefan wrote:
> >> - if (memcg->memcg_name)
> >> - seq_printf(m, "%s:\n", memcg->memcg_name);
> >> + ret = cgroup_path(memcg->css.cgroup, memcg_name, PAGE_SIZE);
> >> + if (!ret)
> >> +
(2013/04/09 12:18), Li Zefan wrote:
>>> @@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
>>> *cont, struct cftype *cft,
>>> struct seq_file *m)
>>>{
>>> struct mem_cgroup *memcg;
>>> + char *memcg_name;
>>> + int ret;
>>> +
>> @@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
>> *cont, struct cftype *cft,
>> struct seq_file *m)
>> {
>> struct mem_cgroup *memcg;
>> +char *memcg_name;
>> +int ret;
>> +
>> +/*
>> + * cgroup.c will do
(2013/04/08 15:36), Li Zefan wrote:
> Now memcg has the same life cycle as its corresponding cgroup,
> we don't have to save the cgroup path name in memcg->memcg_name.
>
> Signed-off-by: Li Zefan
> ---
> mm/memcontrol.c | 65
> +
> 1
On 2013/4/8 22:25, Michal Hocko wrote:
> On Mon 08-04-13 14:36:52, Li Zefan wrote:
> [...]
>> @@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
>> *cont, struct cftype *cft,
>> struct seq_file *m)
>> {
>> struct mem_cgroup *memcg;
On Mon 08-04-13 14:36:52, Li Zefan wrote:
[...]
> @@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
> *cont, struct cftype *cft,
> struct seq_file *m)
> {
> struct mem_cgroup *memcg;
> + char *memcg_name;
> + int ret;
Now memcg has the same life cycle as its corresponding cgroup,
we don't have to save the cgroup path name in memcg->memcg_name.
Signed-off-by: Li Zefan
---
mm/memcontrol.c | 65 +
1 file changed, 24 insertions(+), 41 deletions(-)
diff
Now memcg has the same life cycle as its corresponding cgroup,
we don't have to save the cgroup path name in memcg-memcg_name.
Signed-off-by: Li Zefan lize...@huawei.com
---
mm/memcontrol.c | 65 +
1 file changed, 24 insertions(+), 41
On Mon 08-04-13 14:36:52, Li Zefan wrote:
[...]
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
struct mem_cgroup *memcg;
+ char *memcg_name;
+ int ret;
The
On 2013/4/8 22:25, Michal Hocko wrote:
On Mon 08-04-13 14:36:52, Li Zefan wrote:
[...]
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
struct mem_cgroup *memcg;
+char
(2013/04/08 15:36), Li Zefan wrote:
Now memcg has the same life cycle as its corresponding cgroup,
we don't have to save the cgroup path name in memcg-memcg_name.
Signed-off-by: Li Zefan lize...@huawei.com
---
mm/memcontrol.c | 65
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
struct mem_cgroup *memcg;
+char *memcg_name;
+int ret;
+
+/*
+ * cgroup.c will do page-sized allocations
(2013/04/09 12:18), Li Zefan wrote:
@@ -5188,12 +5154,28 @@ static int mem_cgroup_dangling_read(struct cgroup
*cont, struct cftype *cft,
struct seq_file *m)
{
struct mem_cgroup *memcg;
+ char *memcg_name;
+ int ret;
+
+ /*
+* cgroup.c
On Tue, Apr 09, 2013 at 11:18:21AM +0800, Li Zefan wrote:
- if (memcg-memcg_name)
- seq_printf(m, %s:\n, memcg-memcg_name);
+ ret = cgroup_path(memcg-css.cgroup, memcg_name, PAGE_SIZE);
+ if (!ret)
+ seq_printf(m, %s:\n,
18 matches
Mail list logo