Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1327099ybl; Fri, 10 Jan 2020 16:24:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyN0AiZqvnTAWo0EhhmXn+Z3RUctQvqEsVLnUNlXc8klZJyt8ZGTZLC4F5sRpiCv9tBSUHC X-Received: by 2002:aca:5083:: with SMTP id e125mr4638695oib.96.1578702284513; Fri, 10 Jan 2020 16:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578702284; cv=none; d=google.com; s=arc-20160816; b=Q5vhryIEbpQTfRjL/wRq10k44cn/944RKDqxAsjwKbJFF38+pcP+E7lB3HUHYU0sVs +JRMw6yrSSQiO6SW14HLJCixr0oo91EowbT+nUX48KmKK6ZuY2mM9C7Int/X3BeUZ4tJ Zju5FZFoA0Sjb6CqFu2Wo7ZKB6e8Gvxd3VtU199xB972RJNQ2BZc6GRO4p5ipmrGgt/K UXHhbgClzIpu+7ovuO7NmG1APD4d0LslYeYdUQg5sT2E7ngulZ7myF+6LHdff2Y2Qqle 3Y6E7sKIYmx9eYe9/LKEQZbBmKDFCgCB7ArJI89q+MGi99o25gcEmINcDL0BhTdFbC1N 6K3w== 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=7WnWXCuaXczv3MiKg1HktA0VJdofgPWH6v/BLugYfyY=; b=KTzCOXR+t7eZXUlem5Jn1N7R5dnsSk+69K1hCavVorlvXLwqywg0SSXUlpqda5B26t HxxO2OkUm2WV7lTIu7eDKsE6raNfarrOkcVwSb9L4UzxNaqoEbkX8gmHiQgOf8nnWL5D d4shfjKINApP1Gl5+ZdINv+1usT27LzGd89m+mz/vv1YZC8aPru3sHdSX2un2LHEs/N3 PhOKJE4QHnlucF1eitIYeGwITAHGMFCTbZaQegIjBe8+NsdI52RAMcbwLDC2KGYWgUUf sC9HFGgXvPY5LOTnCYo8RGhqRHIrIY2u+7EyUq5ZZJVXlAkGaZNa6uAFAcNU0veI6Pje lPyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dwTJpY8W; 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 u62si2160219oig.29.2020.01.10.16.24.32; Fri, 10 Jan 2020 16:24:44 -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=dwTJpY8W; 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 S1727718AbgAKAXd (ORCPT + 99 others); Fri, 10 Jan 2020 19:23:33 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:44240 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727454AbgAKAXd (ORCPT ); Fri, 10 Jan 2020 19:23:33 -0500 Received: by mail-oi1-f195.google.com with SMTP id d62so3459063oia.11 for ; Fri, 10 Jan 2020 16:23:32 -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=7WnWXCuaXczv3MiKg1HktA0VJdofgPWH6v/BLugYfyY=; b=dwTJpY8W88ILCg4RZPT1PHuOLNHodSeC86S2F1AcOTylKcPfXVEM3xEG7uGPmlsicp TbUupKQDLgoA1CzAY8pKnHxJ1UUlrsPa6zVDc3gsxOsJAf33c/qEBfRT5e1g33O2kiPK 235Loh6sjOsv35abGw+qwvLy4jnEa78SokGTGi32ioPyGN9bTyCML2yz8V9jdplcuxUY YA6u6z6/3+z0Y49EZETjrg7+maM8TvtTDglvwHHW8rjyKJomhnDavsieYa6D8imca9cN eXjKqtTxotMKuOE+KEuu0CzIpcSl/qojIMZXM4RAk4h1LPGF9s5M/278XusbCkEC28uG r6Ig== 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=7WnWXCuaXczv3MiKg1HktA0VJdofgPWH6v/BLugYfyY=; b=LAtRG7xX6Zg8l/KwtzvImyUJ8MpPmgtvo/nQjK+7kEAIhqcpOPog1CYPcAYvOqJpDl LsxNln8k9HzQSkcMKcYOxhQwlW0bARdr5qVyffv0r0xJsFO1kV2R3z3JlO/VqxFUnqp7 QLIuKhcIjVvMfcNd+/XqPNlFGIuXjR62n/Bz/g+lEuTnI0hlADzWsXPHelZopS4zzMBy RkI/qdXZEMv4NMpSvWSx+gkD/XQe2lxvx6/l6qBtIH8hCMTTHkwitlwvs388IgRPV1Dt 8Ica6EW/f1GLqJR1LLpFu4uzv3TTFuY+dGqFh4sIYz3XydwMVtNHz0oJWKQpF8BiOSzi i4xg== X-Gm-Message-State: APjAAAWS/7eAhp82BQHsAX9/itNUBjcfTvyvCUTsZ8CutPejJbTo1tmd DVbf+DEWvgezaE/p+M0R8SILxh6BPeMtYZwzNs0fFg== X-Received: by 2002:a05:6808:30d:: with SMTP id i13mr4240155oie.144.1578702212099; Fri, 10 Jan 2020 16:23:32 -0800 (PST) MIME-Version: 1.0 References: <20200109202659.752357-1-guro@fb.com> <20200109202659.752357-2-guro@fb.com> In-Reply-To: <20200109202659.752357-2-guro@fb.com> From: Shakeel Butt Date: Fri, 10 Jan 2020 16:23:21 -0800 Message-ID: Subject: Re: [PATCH v2 1/6] mm: kmem: cleanup (__)memcg_kmem_charge_memcg() arguments To: Roman Gushchin Cc: Linux MM , Andrew Morton , Michal Hocko , Johannes Weiner , Vladimir Davydov , LKML , Kernel Team 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 Thu, Jan 9, 2020 at 12:27 PM Roman Gushchin wrote: > > The first argument of memcg_kmem_charge_memcg() and > __memcg_kmem_charge_memcg() is the page pointer and it's not used. > Let's drop it. > > Memcg pointer is passed as the last argument. Move it to > the first place for consistency with other memcg functions, > e.g. __memcg_kmem_uncharge_memcg() or try_charge(). > > Signed-off-by: Roman Gushchin Reviewed-by: Shakeel Butt