Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5776771ybl; Tue, 14 Jan 2020 14:58:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxWqwXGjU0wRxHCaVk4Ns9rW0ecpdNtaVshcyNSYGPgbolcEnO0dzYtDSn97kLVqJ+RJ26I X-Received: by 2002:a05:6830:174e:: with SMTP id 14mr581208otz.142.1579042689291; Tue, 14 Jan 2020 14:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579042689; cv=none; d=google.com; s=arc-20160816; b=bGsnrhSvB3V7oKDMmgtIVxH5w0LupG9AUmgw2TqOx3708P8eyY4uilQ8Eoy8Qi5gzc hMduCqMWodd6/DNHjfBX3IuLZmbNogfd3zf1bSPlJaz67rawAr0oz4czrBZyi7hzU3pm sNMj41A8uyCMkgGvYZkF5vNNKVhBY1Oj0EfOdpDzG+abmRxxJQ1TbdxLGvSG3t3zepUi jxlpgMWLz3HLVyfVN7Ixesw+13XMVj0eFAD4/sc/AppZz1kIQXHcq8xtIEDeCU6B9XNW XHb+4Rwm3/GMtR1CKUSGWWhj1UwnhVWkxy9yABfbIBPiMwEK9uQU+GhwQn+9HRqOmc4X ifIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ipIhJjAH0mlgj9mgI3WhoNWssFh6GjBw0YOeerhZCcU=; b=TbSqEer/Eq+X4RVMmG6dhPd51fr837Pr/53pzKPxxhMwpo+d3BZ0tkkpWW9BY0Y4fd DcBDblc2mckcCpHY7Dih8ymF8YL3dCof1jh7vW+0i1buniYS9aLGZMrz89VyStYnTZwQ 1PfkQnQReZj2OSG7X6+C2mGHPUuMn7iM4QA8OrtWgUMCRzFYaS0p1P0jVPQ1uDIIRb6F IYK6PHNyBAGQr3UVmz7vHBmXVwz8I2orSpd/5LEcFkibS6eyhOJvBd8S5yu07PXH0hHi S9tKvRGIUOEpQmTOZoHTEsQyAbXe82xkbOIditSFrvkDMg2fpo6UlMCWuYvU/+XiSM1l vW2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BXtYSede; 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 f23si9038581oto.205.2020.01.14.14.57.58; Tue, 14 Jan 2020 14:58:09 -0800 (PST) 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=BXtYSede; 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 S1728877AbgANW4G (ORCPT + 99 others); Tue, 14 Jan 2020 17:56:06 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:44184 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728746AbgANW4G (ORCPT ); Tue, 14 Jan 2020 17:56:06 -0500 Received: by mail-ot1-f67.google.com with SMTP id h9so14301752otj.11 for ; Tue, 14 Jan 2020 14:56:05 -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=ipIhJjAH0mlgj9mgI3WhoNWssFh6GjBw0YOeerhZCcU=; b=BXtYSedeHXcXqhdhhWIbtaBy54tVxbI3e9loIGv5zhO5CDgbahYX7y+Orjx6CD4zCZ 0VhZIf5F4aluPlRU7PpNhbbEGba3pmcWe+cL3CBi5DKya+w5q6G9eUjD6Y6LZi3IlJ3t DrJUFTIu5BCbGGqB1F/xwGxS7UBhnEduOl7KTKpELe4ehBWkmis+mzbELNb1lGuQU++3 QqqpluWfbXgvT/3D7WUNnyrjmuuZFxOwFtqlIlsp5tc9+S7eipRPEcevYerqbyHWNTNb Hhqn87JV86nkgRWq1rMf/JsZJIoYLMVRDfzRbSZxDqafJRFy4Ttng/Rd5qCfuV8koCw1 S2/A== 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=ipIhJjAH0mlgj9mgI3WhoNWssFh6GjBw0YOeerhZCcU=; b=sFi7xMyLs8aydDrqqtd/C0DdpUynD7wTvVlkZ1LZJs+BFp9peg74qRlbOOa0qJnX7n nC6Xo12tAcmX1WqN+Cd63PmyEQ8LbwbO+5oBjRXGU/XUuP+9zRTzxnWfxIVLZLWNLOvC 8Qw6VSR4n+JEm51YrF+XJj/KrG+bUji4GTHvb5Cpl2x0m24Y9AEUwmCiu+qACpYF/jDZ 1+w4V5evyBYSO4E6YZxY43s+HJuDe5yjn8YNhOm66D3BmQtONBLG4nVf8TarL83J4YJO hWkEfbkCU24h8P7uq8lgNj30nPfJc4jQVNiodFdy68Gzvzn3FHo2hocs/CljUUxpvcQR KMaQ== X-Gm-Message-State: APjAAAV6QCVfV/6KgN9LGZHTVDpnr8PL52cS9kvTrLCps1D5t0fShsi2 Ok4RH9jYqLvD9HeOLOzlyMybjvzabES7Hpps8UbCKQ== X-Received: by 2002:a9d:7b4e:: with SMTP id f14mr557782oto.355.1579042565055; Tue, 14 Jan 2020 14:56:05 -0800 (PST) MIME-Version: 1.0 References: <20191217231615.164161-1-almasrymina@google.com> <20191217231615.164161-2-almasrymina@google.com> <0855cae0-872e-0727-aa7c-55051d8f0871@oracle.com> In-Reply-To: <0855cae0-872e-0727-aa7c-55051d8f0871@oracle.com> From: Mina Almasry Date: Tue, 14 Jan 2020 14:55:53 -0800 Message-ID: Subject: Re: [PATCH v9 2/8] hugetlb_cgroup: add interface for charge/uncharge hugetlb reservations To: Mike Kravetz Cc: shuah , David Rientjes , Shakeel Butt , Greg Thelen , Andrew Morton , open list , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org, Aneesh Kumar , =?UTF-8?Q?Michal_Koutn=C3=BD?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 2:14 PM Mike Kravetz wrote: > > +extern void hugetlb_cgroup_uncharge_counter(struct page_counter *p, > > + unsigned long nr_pages, > > + struct cgroup_subsys_state *css); > > + > > Do we need a corresponding stub for the !CONFIG_CGROUP_HUGETLB case? > Not necessary AFAICT because the code is only called from code guarded by CONFIG_CGROUP_HUGETLB. Addressing comments from you and David in v10 shortly. Thanks for the review!