Re: [Devel] [PATCH vz7 v2 6/7] ub stat: sync memcg contents with beancounter if required

2015-10-02 Thread Vladimir Davydov
On Fri, Oct 02, 2015 at 08:54:24PM +0200, Stanislav Kinsburskiу wrote: > > 2 окт. 2015 г. 19:56 пользователь Vladimir Davydov > написал: > > > > On Thu, Oct 01, 2015 at 05:38:43PM +0400, Stanislav Kinsburskiy wrote: > > > > > @@ -224,6 +224,22 @@ int ubstat_alloc_store(struct user_beancounter *

Re: [Devel] [PATCH vz7 v2 6/7] ub stat: sync memcg contents with beancounter if required

2015-10-02 Thread Vladimir Davydov
On Thu, Oct 01, 2015 at 05:38:43PM +0400, Stanislav Kinsburskiy wrote: > @@ -224,6 +224,22 @@ int ubstat_alloc_store(struct user_beancounter *ub) > } > EXPORT_SYMBOL(ubstat_alloc_store); > > +static bool ubstat_need_memcg_sync(long cmd) > +{ > + if (UBSTAT_CMD(cmd) != UBSTAT_READ_ONE) > +