From: Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>
To: Qiang Huang <h.huangqiang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Cc: Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>,
bsingharora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org,
Cgroups <cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-rt-users
<linux-rt-users-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Subject: Re: [PATCH 1/2] memcg: fold mem_cgroup_stolen
Date: Wed, 7 May 2014 11:17:55 +0200 [thread overview]
Message-ID: <20140507091755.GA9489@dhcp22.suse.cz> (raw)
In-Reply-To: <5369EE5E.50202-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
On Wed 07-05-14 16:27:10, Qiang Huang wrote:
> It is only used in __mem_cgroup_begin_update_page_stat(), the
> name is confusing and 2 routines for one thing also confuse people,
> so fold this function seems more clear.
Yes, the name was everything but self-explanatory.
The patch looks good to me. One nit below.
> Signed-off-by: Qiang Huang <h.huangqiang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Acked-by: Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>
> ---
> mm/memcontrol.c | 25 +++++++------------------
> 1 file changed, 7 insertions(+), 18 deletions(-)
>
> diff --git a/mm/memcontrol.c b/mm/memcontrol.c
> index 4f97662..5804d71 100644
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -1568,23 +1568,12 @@ static void mem_cgroup_end_move(struct mem_cgroup *memcg)
> }
>
> /*
> - * 2 routines for checking "mem" is under move_account() or not.
> + * A routine for checking "mem" is under move_account() or not.
> *
> - * mem_cgroup_stolen() - checking whether a cgroup is mc.from or not. This
> - * is used for avoiding races in accounting. If true,
> - * pc->mem_cgroup may be overwritten.
> - *
> - * mem_cgroup_under_move() - checking a cgroup is mc.from or mc.to or
> - * under hierarchy of moving cgroups. This is for
> - * waiting at hith-memory prressure caused by "move".
> + * Checking a cgroup is mc.from or mc.to or under hierarchy of
> + * moving cgroups.
> This is for waiting at hith-memory pressure
s/hith/high/
but I guess that part can go away
[...]
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2014-05-07 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 8:27 [PATCH 1/2] memcg: fold mem_cgroup_stolen Qiang Huang
[not found] ` <5369EE5E.50202-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-05-07 9:17 ` Michal Hocko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140507091755.GA9489@dhcp22.suse.cz \
--to=mhocko-alswssmvlrq@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=bsingharora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=h.huangqiang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
--cc=linux-rt-users-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox