lkml.org 
[lkml]   [2020]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 12/18] mm: memcontrol: convert anon and file-thp to new mem_cgroup_charge() API
    On Mon, Apr 20, 2020 at 06:11:20PM -0400, Johannes Weiner wrote:
    > With the page->mapping requirement gone from memcg, we can charge anon
    > and file-thp pages in one single step, right after they're allocated.
    >
    > This removes two out of three API calls - especially the tricky commit
    > step that needed to happen at just the right time between when the
    > page is "set up" and when it's "published" - somewhat vague and fluid
    > concepts that varied by page type. All we need is a freshly allocated
    > page and a memcg context to charge.
    >
    > Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>

    Reviewed-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>

    \
     
     \ /
      Last update: 2020-04-24 02:30    [W:4.240 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site