lkml.org 
[lkml]   [2018]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] fs-mm-account-buffer_head-to-kmemcg.patch.fix
    Date
    The patch "fs, mm: account buffer_head to kmemcg" missed to add
    __GFP_ACCOUNT flag into the gfp mask for directed memcg charging. So,
    adding it. Andrew, please squash this into the original patch.

    Signed-off-by: Shakeel Butt <shakeelb@google.com>
    ---
    fs/buffer.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/fs/buffer.c b/fs/buffer.c
    index e08863af56f6..405d4723ed3d 100644
    --- a/fs/buffer.c
    +++ b/fs/buffer.c
    @@ -814,7 +814,7 @@ struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
    bool retry)
    {
    struct buffer_head *bh, *head;
    - gfp_t gfp = GFP_NOFS;
    + gfp_t gfp = GFP_NOFS | __GFP_ACCOUNT;
    long offset;
    struct mem_cgroup *memcg;

    --
    2.18.0.399.gad0ab374a1-goog
    \
     
     \ /
      Last update: 2018-07-03 00:03    [W:5.241 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site