Re: [External] Re: [PATCH] mm: memcontrol: localize mem_cgroup_sockets_enabled() check

2020-10-12 Thread Muchun Song
On Mon, Oct 12, 2020 at 9:59 PM Johannes Weiner wrote: > > On Sat, Oct 10, 2020 at 06:45:21PM +0800, Muchun Song wrote: > > Move the mem_cgroup_sockets_enabled() checks into memcg socket charge > > or uncharge functions, so the users don't have to explicitly check that > > condition. > > > > This

Re: [PATCH] mm: memcontrol: localize mem_cgroup_sockets_enabled() check

2020-10-12 Thread Johannes Weiner
On Sat, Oct 10, 2020 at 06:45:21PM +0800, Muchun Song wrote: > Move the mem_cgroup_sockets_enabled() checks into memcg socket charge > or uncharge functions, so the users don't have to explicitly check that > condition. > > This is purely code cleanup patch without any functional change. But > mov

[PATCH] mm: memcontrol: localize mem_cgroup_sockets_enabled() check

2020-10-10 Thread Muchun Song
Move the mem_cgroup_sockets_enabled() checks into memcg socket charge or uncharge functions, so the users don't have to explicitly check that condition. This is purely code cleanup patch without any functional change. But move the sk_memcg member of the sock structure to the CONFIG_MEMCG scope. S