Re: [PATCH] memcg: do not check for do_swap_account inmem_cgroup_{read,write,reset}

From: Johannes Weiner
Date: Wed Mar 27 2013 - 11:08:56 EST


On Tue, Mar 19, 2013 at 02:06:55PM +0100, Michal Hocko wrote:
> since 2d11085e (memcg: do not create memsw files if swap accounting
> is disabled) memsw files are created only if memcg swap accounting is
> enabled so there doesn't make any sense to check for it explicitely in
> mem_cgroup_read, mem_cgroup_write and mem_cgroup_reset.
>
> Signed-off-by: Michal Hocko <mhocko@xxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/