Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp462110imm; Mon, 2 Jul 2018 15:03:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ0YcHoR/TNktBLKIHlo1FpCn/uAObRwOxeNjcgxnEliPmR3c0S13HTksfbxyfWfIbxZPes X-Received: by 2002:a17:902:6b47:: with SMTP id g7-v6mr27817342plt.251.1530569008362; Mon, 02 Jul 2018 15:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530569008; cv=none; d=google.com; s=arc-20160816; b=Hi8tedg8xVrWiv1GeNzBZph7y/3y9ziFL7V+068aBLy5MxFZmz25UROu5PJAkXoH/K /18RUsJQaEminBclQWTsnJrHWtlGeOJQshUbRO/Ztf0VCJ6+FvsFrkKJlsH+zRe7xuw/ cdZRohplHXWLzXfgtDDE1jV8NbcPf6kFaVUXlDDjFGsHLRRwC4o33A3E4ORtUnlJEj62 Az+76XENWVAPa4JSYY1/fJ/WNPouDRVR+0fLbf+/0pzy7MIx/1m9NHpcKjYGB9lKuKND DxMySNgMuf0T1Qx64ZLkkOLL5Z/M893Wrb+8IijSvUAPzhPRjO5XnrZ9q8WjyECpL7t4 91lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=SKh13LkMK7j4XBTqGSWo1FUAYyaM8xDSpOf54EkY4xc=; b=V6NusBUETDBSYnIw1AAVZo23ZdA3e8KCAZTJ4EQvAyuf0bVP6/C/Jw4lref77OaJH6 rp6ZIjnFeHazY0MU6p6VhZmwyrlHmo2kxR2aiveDJrORki9Qp99kU+jYvkOBwraIPv0f sk9zjkCq971NXRCyZbqNpJF8e1gazIpnUwbPxeLH1ZCqV6vK+Pl1ybgMCacwlQdmANJV oEaN+Jxt+eGbGDKZflIdqO1nKjW0gMcaosjaSyb6IM8Mtd4phw7VV2DuTR0vwuDtcJo+ HdceYRIotr8AF7varQdgbPpTRqwgagfMYl6uIS6J5PafLh3K4Gs5H6K7oT+r9B8SUrJk w1CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BIX13R4u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si9759683pge.404.2018.07.02.15.03.14; Mon, 02 Jul 2018 15:03:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BIX13R4u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbeGBWCQ (ORCPT + 99 others); Mon, 2 Jul 2018 18:02:16 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38864 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbeGBWCP (ORCPT ); Mon, 2 Jul 2018 18:02:15 -0400 Received: by mail-pg0-f68.google.com with SMTP id c9-v6so7713362pgf.5 for ; Mon, 02 Jul 2018 15:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SKh13LkMK7j4XBTqGSWo1FUAYyaM8xDSpOf54EkY4xc=; b=BIX13R4uPRJtUM2PLlfjFO375WJjIr/xwG5flMI5/HPb0pYm0GAJkCCPP7VHJU81gk mIXY4jMFemSOyMDxscgDBoW7trqcZRH98FDUXyKyrs+99rzrsjB2BCotiDSdQBwbYA4J CFzNkd9a8Nop7151PRu3U9QYT41r6cWSBb/shBNYr7RGA8sq2p0+M29lHar1VfDA+fdO 2tEJjJWMVRq0v5TRF+gSdyFwCd3J1HtgW5s4SQdM85jpJFq2zesaeqlX9QYolhL9ufDw sm7t3L0a3SYwHu9KoYuNM30yRaQmRkEa/WAKgYAhl58kwUsEsc65gUI8VBFx6O3hT9VT Wy1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SKh13LkMK7j4XBTqGSWo1FUAYyaM8xDSpOf54EkY4xc=; b=rIWi2/UvIfvw5lEIRsSb1QZfMjJC9acJ4xnyWBFRmXciIlXpMwKxCbFXnIRQIWTFGY xlHf2SB7hAwMCXIIXPbuQgH7TSBsypMZLtK7xcUp0cFi88u0bEwdK/ryv7c+Ra67eyIz D4r7jlC2V2inCaTpNGQAScVyVDz/PG+CUJugWjzvZkhaCwnb8cqgp+sHQS3JX6Ct9m1D TYCb8Zy+f264iHS0oWUZqvw4NoscHMf8uyuet7rRZMV4kdJJFVQIAWYVnJKpsmuWxCiN 0qq2lkjzZr2IS7u0fE9/z4ML99skJVle7eghQngh70in28NzXbi13r+96Ze+fl6T7nYa GBHA== X-Gm-Message-State: APt69E0RV+4sIJ9Gx9NnDJs6ZWt/Vr+GspR43Kriiis26sfYFv+XYlD6 ETU34ns0eYxlqJ7auCGtmF7IMoJVSmo= X-Received: by 2002:a63:1546:: with SMTP id 6-v6mr8808447pgv.271.1530568934429; Mon, 02 Jul 2018 15:02:14 -0700 (PDT) Received: from shakeelb.mtv.corp.google.com ([2620:15c:2cb:201:3a5f:3a4f:fa44:6b63]) by smtp.gmail.com with ESMTPSA id i89-v6sm30086229pfi.170.2018.07.02.15.02.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 15:02:13 -0700 (PDT) From: Shakeel Butt To: Andrew Morton Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt Subject: [PATCH] fs-mm-account-buffer_head-to-kmemcg.patch.fix Date: Mon, 2 Jul 2018 15:02:08 -0700 Message-Id: <20180702220208.213380-1-shakeelb@google.com> X-Mailer: git-send-email 2.18.0.399.gad0ab374a1-goog In-Reply-To: <20180627191250.209150-3-shakeelb@google.com> References: <20180627191250.209150-3-shakeelb@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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