Re: [PATCH 02/23] memcg, thp: charge huge cache pages

2013-08-04 Thread Michal Hocko
On Sun 04-08-13 05:17:04, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > mem_cgroup_cache_charge() has check for PageCompound(). The check > prevents charging huge cache pages. > > I don't see a reason why the check is present. Looks like it's just > legacy (introduced in 52d4b9a mem

[PATCH 02/23] memcg, thp: charge huge cache pages

2013-08-03 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" mem_cgroup_cache_charge() has check for PageCompound(). The check prevents charging huge cache pages. I don't see a reason why the check is present. Looks like it's just legacy (introduced in 52d4b9a memcg: allocate all page_cgroup at boot). Let's just drop it. Signe