Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1229014 > unrolled thread
| Started by | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| First post | 2015-09-21 06:20 +0200 |
| Last post | 2015-09-21 12:20 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
linux-next: build failure after merge of the akpm-current tree Stephen Rothwell <sfr@canb.auug.org.au> - 2015-09-21 06:20 +0200
Re: linux-next: build failure after merge of the akpm-current tree Vladimir Davydov <vdavydov@parallels.com> - 2015-09-21 10:00 +0200
Re: linux-next: build failure after merge of the akpm-current tree Michal Hocko <mhocko@kernel.org> - 2015-09-21 10:00 +0200
Re: linux-next: build failure after merge of the akpm-current tree Stephen Rothwell <sfr@canb.auug.org.au> - 2015-09-21 12:20 +0200
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2015-09-21 06:20 +0200 |
| Subject | linux-next: build failure after merge of the akpm-current tree |
| Message-ID | <qb0K5-449-13@gated-at.bofh.it> |
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (x86_64
allmodconfig) failed like this:
mm/vmscan.c: In function 'sane_reclaim':
mm/vmscan.c:178:2: error: implicit declaration of function 'cgroup_on_dfl' [-Werror=implicit-function-declaration]
if (cgroup_on_dfl(memcg->css.cgroup))
^
Caused by commit
d08255ab4d66 ("vmscan: fix sane_reclaim helper for legacy memcg")
interacting with commit
9e10a130d9b6 ("cgroup: replace cgroup_on_dfl() tests in controllers with cgroup_subsys_on_dfl()")
from the cgroup tree.
I don't know what the correct firx is here (help, please) so I have just
open coded the cgroup_on_dfl() call for now:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 21 Sep 2015 14:06:17 +1000
Subject: [PATCH] vmscan-fix-sane_reclaim-helper-for-legacy-memcg-fix
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 6ad68edbd260..8c7b1f5c6a6d 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -175,7 +175,7 @@ static bool sane_reclaim(struct scan_control *sc)
if (!memcg)
return true;
#ifdef CONFIG_CGROUP_WRITEBACK
- if (cgroup_on_dfl(memcg->css.cgroup))
+ if (memcg->css.cgroup->root == &cgrp_dfl_root)
return true;
#endif
return false;
--
2.5.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Vladimir Davydov <vdavydov@parallels.com> |
|---|---|
| Date | 2015-09-21 10:00 +0200 |
| Message-ID | <qb4aZ-nG-5@gated-at.bofh.it> |
| In reply to | #1229014 |
On Mon, Sep 21, 2015 at 02:10:39PM +1000, Stephen Rothwell wrote:
> After merging the akpm-current tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> mm/vmscan.c: In function 'sane_reclaim':
> mm/vmscan.c:178:2: error: implicit declaration of function 'cgroup_on_dfl' [-Werror=implicit-function-declaration]
> if (cgroup_on_dfl(memcg->css.cgroup))
> ^
>
> Caused by commit
>
> d08255ab4d66 ("vmscan: fix sane_reclaim helper for legacy memcg")
>
> interacting with commit
>
> 9e10a130d9b6 ("cgroup: replace cgroup_on_dfl() tests in controllers with cgroup_subsys_on_dfl()")
>
> from the cgroup tree.
>
> I don't know what the correct firx is here (help, please) so I have just
> open coded the cgroup_on_dfl() call for now:
Quoting Tejun (http://www.spinics.net/lists/linux-mm/msg94556.html):
: Just a heads-up. I'm applying a patch which replaces cgroup_on_dfl()
: with cgroup_subsys_on_dfl() to cgroup/for-4.4, so this patch would
: need to be adjusted to do cgroup_subsys_on_dfl(memory_cgrp_subsys)
: instead.
Thanks,
Vladimir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2015-09-21 10:00 +0200 |
| Message-ID | <qb4b0-nG-11@gated-at.bofh.it> |
| In reply to | #1229014 |
On Mon 21-09-15 14:10:39, Stephen Rothwell wrote:
> Hi Andrew,
>
> After merging the akpm-current tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> mm/vmscan.c: In function 'sane_reclaim':
> mm/vmscan.c:178:2: error: implicit declaration of function 'cgroup_on_dfl' [-Werror=implicit-function-declaration]
> if (cgroup_on_dfl(memcg->css.cgroup))
> ^
>
> Caused by commit
>
> d08255ab4d66 ("vmscan: fix sane_reclaim helper for legacy memcg")
>
> interacting with commit
>
> 9e10a130d9b6 ("cgroup: replace cgroup_on_dfl() tests in controllers with cgroup_subsys_on_dfl()")
>
> from the cgroup tree.
>
> I don't know what the correct firx is here (help, please) so I have just
> open coded the cgroup_on_dfl() call for now:
AFAIU your fix is correct but using
cgroup_subsys_on_dfl(memory_cgrp_subsys) is more appropriate:
diff --git a/mm/vmscan.c b/mm/vmscan.c
index d62924ee8022..c3df03add73e 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -176,7 +176,7 @@ static bool sane_reclaim(struct scan_control *sc)
if (!memcg)
return true;
#ifdef CONFIG_CGROUP_WRITEBACK
- if (cgroup_on_dfl(memcg->css.cgroup))
+ if (cgroup_subsys_on_dfl(memory_cgrp_subsys))
return true;
#endif
return false;
--
Michal Hocko
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2015-09-21 12:20 +0200 |
| Message-ID | <qb6mt-3FW-1@gated-at.bofh.it> |
| In reply to | #1229097 |
Hi Michal, Vladimir, On Mon, 21 Sep 2015 09:58:53 +0200 Michal Hocko <mhocko@kernel.org> wrote: > > AFAIU your fix is correct but using > cgroup_subsys_on_dfl(memory_cgrp_subsys) is more appropriate: > diff --git a/mm/vmscan.c b/mm/vmscan.c > index d62924ee8022..c3df03add73e 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -176,7 +176,7 @@ static bool sane_reclaim(struct scan_control *sc) > if (!memcg) > return true; > #ifdef CONFIG_CGROUP_WRITEBACK > - if (cgroup_on_dfl(memcg->css.cgroup)) > + if (cgroup_subsys_on_dfl(memory_cgrp_subsys)) > return true; > #endif > return false; Thanks, I will do that from tomorrow. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web