Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp587275pxu; Thu, 3 Dec 2020 07:52:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNRtROJub+D231M8MlknOt8yw35iM8erwxhobQe9PtN2X3EBFo/ab8XV4HGFE9dwvv3dmJ X-Received: by 2002:a50:d553:: with SMTP id f19mr3270011edj.323.1607010748588; Thu, 03 Dec 2020 07:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607010748; cv=none; d=google.com; s=arc-20160816; b=rnEOaEOk7gz2ghXVKGFCBkvTl5FUgrl/swiawjlQ5e35+gpaA+glA7PLfTKtnSLJgd RpKTZiyXtS2Cb8l1MQbDhTXtEKIHcdAVzo377ls9PwX8taF1hhcyfW5JmH7uFriYQOe0 QHM75OQufY1QF2+B+12zDTMArpfzyLlzcv9v0ZPRc3pR0f1dbPzfrLQueXO2DVFBv/+x ovx9OjYqJ52HzcpXZqJmUgnJbnqoxL+4f7Sr5chr6BrKCnzf1FNeob08DTphiL3wd8aB IDo6N9y58msV3xc+aVfyQlIVVO+BRAHM6LdMDgprCd8MH6ofrGLREWOkjcsBOBflcH9H sTeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/ayfcs9PdWYm7lbPtI7skq4RBm0f2Hr2bSO79nAHtFc=; b=0Y3b7MX9RpgendMY03sw+vWA1fCzY1B2LAkEQrMHmSQvrL/vnimODlG1iBmpFjp+Vm u7r94G4BLkQgsxPvyRVBFMZgxqXVnBrhE64rup+VLwJFGckaEI09mb+J4sHmhZclNKlu +Sqw0wPABB+bxh10sFwDztZF4+z3FxBcd9ZDx5gZzqeSa4BLGiJXGmQ7t01jIlfimUvz Wq9ZQwXx7RDiQ6OItPMfpG1TzjWyF3o6CX043JBDsToZczlYzkPsDHSxQEePLZeCnBp5 TjaR/s4xcQGBIYwAo42tyM8XAEwui5Vbb8JEeTJduAbzwo4Bu/5y64mvr7sj068rig2f wCxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qeNyZ8Ys; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m7si1446712eji.682.2020.12.03.07.52.04; Thu, 03 Dec 2020 07:52:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qeNyZ8Ys; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726179AbgLCPsC (ORCPT + 99 others); Thu, 3 Dec 2020 10:48:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbgLCPsB (ORCPT ); Thu, 3 Dec 2020 10:48:01 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BEB2C061A52 for ; Thu, 3 Dec 2020 07:47:21 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id y10so3020675ljc.7 for ; Thu, 03 Dec 2020 07:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/ayfcs9PdWYm7lbPtI7skq4RBm0f2Hr2bSO79nAHtFc=; b=qeNyZ8YsBRIcSSEnxPslZwdaQzbHNHWQrVBr58zRszE0F8P9QlO9s+F6Eup0AC7FxW QCI9RwkC5r87S1DcMFuQ0LGorDW6hc5tvP0HfgHeOOAQ4yRiIDrmcnabMErr46z25doA KuS+R05984StHPoMfsXc6p3fX8UtHh/OTtoHz+R5rvw8+PEVFCbi/ODbvauIcTOeBy/l LjY8bfJMs0j0jbctFehRcbnTYB5vfU33O6FRUX3G3dJeEzqE4yjZP8cwtzrXBtIu4V9x qG8OhxlOwT0sXfEVrrlcH+U1SXqjVUNsoLXauBwPRBppDacfBHal0+6hTivZDoWfPiUF I5fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/ayfcs9PdWYm7lbPtI7skq4RBm0f2Hr2bSO79nAHtFc=; b=UslroHwmYXUEc85il1sdlsc7rc3RFV3bfZE26m/YFLvn0pg5ER7Wos9uSwXg2yj8dw 9mvEgChZ0Fk0AaqI9L8jMgNAI100GaM0OmI1jAY/LCaW1nwl72T17Hkh9H7gA5+4stQU tUQ1n4/Zj4Zv5bYq8QDsNIIi6oJHvCfA9REFn8Sm6oh0m8BFTMtzNC/cSTNLvNjjmOL3 k20xRjHW9xYzQFSoMY707w9iyy1zz+VFDVQMWoRYtRFutfrnXYhl9ebMD2vRy7BkmMSE 2WLuFGjKFUo1iHO+/jfc5r5iP8OYZ01KW2FoQYK0PWythWlhE30bJYEhfAxCQfrCvZLC r/Ag== X-Gm-Message-State: AOAM530kz64Mju8qH8ksUHQXLN3MVb0A0S+19DC2Ue7rGpeck4VvtEjD AeEIvsL88NsWcUddg5v/2ZSa2FFoZk2d3kQWeQWAHQ== X-Received: by 2002:a2e:3c12:: with SMTP id j18mr1526064lja.192.1607010439133; Thu, 03 Dec 2020 07:47:19 -0800 (PST) MIME-Version: 1.0 References: <20201203062949.5484-1-rppt@kernel.org> <20201203062949.5484-8-rppt@kernel.org> In-Reply-To: <20201203062949.5484-8-rppt@kernel.org> From: Shakeel Butt Date: Thu, 3 Dec 2020 07:47:07 -0800 Message-ID: Subject: Re: [PATCH v14 07/10] secretmem: add memcg accounting To: Mike Rapoport Cc: Andrew Morton , Alexander Viro , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , David Hildenbrand , Elena Reshetova , "H. Peter Anvin" , Ingo Molnar , James Bottomley , "Kirill A. Shutemov" , Matthew Wilcox , Mark Rutland , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , Rick Edgecombe , Roman Gushchin , Shuah Khan , Thomas Gleixner , Tycho Andersen , Will Deacon , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel , Linux MM , LKML , linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-riscv@lists.infradead.org, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 2, 2020 at 10:31 PM Mike Rapoport wrote: > > From: Mike Rapoport > > Account memory consumed by secretmem to memcg. The accounting is updated > when the memory is actually allocated and freed. > > Signed-off-by: Mike Rapoport > Acked-by: Roman Gushchin Reviewed-by: Shakeel Butt