Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1257117

Re: [PATCH] memcg: Fix thresholds for 32b architectures.

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] memcg: Fix thresholds for 32b architectures.
Date 2015-10-27 19:30 +0100
Message-ID <qohaq-8R-15@gated-at.bofh.it> (permalink)
References <qo9PA-455-17@gated-at.bofh.it> <qofii-7q9-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 27-10-15 09:23:31, Johannes Weiner wrote:
[...]
> > Fixes: 424cdc141380 ("memcg: convert threshold to bytes")
> > Fixes: 3e32cb2e0a12 ("mm: memcontrol: lockless page counters")
> > CC: stable@vger.kernel.org
> > Reported-by: Ben Hutchings <ben@decadent.org.uk>
> > Signed-off-by: Michal Hocko <mhocko@suse.com>
> 
> Acked-by: Johannes Weiner <hannes@cmpxchg.org>

Thanks!

> 
> > +++ b/mm/memcontrol.c
> > @@ -2802,7 +2802,7 @@ static unsigned long tree_stat(struct mem_cgroup *memcg,
> >  	return val;
> >  }
> >  
> > -static inline u64 mem_cgroup_usage(struct mem_cgroup *memcg, bool swap)
> > +static inline unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap)
> >  {
> >  	u64 val;
> 
> Minor nit, but this should probably be unsigned long now.

Yeah, I've missed this. Andrew, do you want me to post a new version or
you can fold a trivial update here?
---
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 2823cafc269e..f4c09c4e895f 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2804,7 +2804,7 @@ static unsigned long tree_stat(struct mem_cgroup *memcg,
 
 static inline unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap)
 {
-	u64 val;
+	unsigned long val;
 
 	if (mem_cgroup_is_root(memcg)) {
 		val = tree_stat(memcg, MEM_CGROUP_STAT_CACHE);

-- 
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] memcg: Fix thresholds for 32b architectures. mhocko@kernel.org - 2015-10-27 11:40 +0100
  Re: [PATCH] memcg: Fix thresholds for 32b architectures. Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-10-27 16:30 +0100
  Re: [PATCH] memcg: Fix thresholds for 32b architectures. Johannes Weiner <hannes@cmpxchg.org> - 2015-10-27 17:30 +0100
    Re: [PATCH] memcg: Fix thresholds for 32b architectures. Michal Hocko <mhocko@kernel.org> - 2015-10-27 19:30 +0100

csiph-web