Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7982198ybl; Thu, 16 Jan 2020 08:44:04 -0800 (PST) X-Google-Smtp-Source: APXvYqz4ADfP55YxPe4DNJWkjIuuSOy22AcfsbUWZxOr8AwYJzRgKAFOkkNSbJKvMsYhm3iaX/DZ X-Received: by 2002:aca:4c07:: with SMTP id z7mr4840203oia.74.1579193044477; Thu, 16 Jan 2020 08:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579193044; cv=none; d=google.com; s=arc-20160816; b=fA3i89+rONCvf38dl9WTPCu6wfgPFJYUkwujSmKE7FvW2gETJOgefBKSD34VeldzPk +tumBbDXg052ds+NEaRLExJvO4WcFC0YsRXcSeQlWERL4hy1s5FyPHgt69riVgxBaLRi LDRxTlNgHjHbI8EbKnwOlwJZnTrXmrgkSYurlA+0SnabRSeySBdEBY2D/QqB7JPClhWk 6LpLNgr83f7ilQqoHm8PsRKBlMZhmGU58mgJ+qxqntYq2fNkkFmRH81A14i1DnWx0sRq jlhKQ9dgsIciRrFa15PpLEGAUMzo8k4rqUOrHZIKfKla4ZdXbfBBA2lkq2fVUTboCeQa BLjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b9QE+LiR9p5+Rf6la4xwWf8GBTBoS3t/ZtAxNnRV06w=; b=qJoaMURRfzWY5OSGBZCn95cBdaAqV3n5GipT5hYd5ywrHSykm440jvEqpNjgcRJ2lD ZPyqb98XMHAzFqt00M2lc8vtcne9HCvSe1vIDYcnhbTzk2LCeblbfQWvsyW89+gZVu4j eW7o5qVl5mmaaD5Ou/og5OXoAMx3hPxpowkX6num91t4VdiJGPdcfyGcwnPHqjipLQjY PQgis3alFyjJsoItqgrv48LKtITDQTwrDfNc2oVBQiaDbmWAgJZrwfWQuXisv/Vi0NDb DOD6+CkC6NvilP3sLa5M7QeZTFypONP/8Ag8a3pPWVDe6pa1NWZgjg6iKY4MwW2UNXdr wQTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=XSlT6svp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12si13682898otq.53.2020.01.16.08.43.51; Thu, 16 Jan 2020 08:44:04 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=XSlT6svp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbgAPQm5 (ORCPT + 99 others); Thu, 16 Jan 2020 11:42:57 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:35465 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgAPQm5 (ORCPT ); Thu, 16 Jan 2020 11:42:57 -0500 Received: by mail-qt1-f193.google.com with SMTP id e12so19388779qto.2 for ; Thu, 16 Jan 2020 08:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=b9QE+LiR9p5+Rf6la4xwWf8GBTBoS3t/ZtAxNnRV06w=; b=XSlT6svpQF6nyePrDNcw3mK3DVodnWYihXivlGOCaQJzN08v+8Q7IpWsA+jgk+chSN iOr+CJ0MglJ7e/UF/mitK3eCl6sxBxbaUkG0GZeFVPH9bOvKwF+3U67HVm6XWaS3kPvu zBwDrFq+4FZWKhOy14L6LboCalNQEpKUVK0+8F9JP7nIk+APLQ23X+6IrveLkf+qmA2U WMHRLLUoKEA5Jc3yT3HKWCbejWJ0cw1zzHH0KDiMIBZTNM6Ls8RU9w/546r7NUCOmOrL 85RCE7D9OkL8TeXEUV3flv7M1c1sUSpyBScQ7BzMJHUjgRFE/mMoLgRh3LsEF9Wa7OaS vl3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=b9QE+LiR9p5+Rf6la4xwWf8GBTBoS3t/ZtAxNnRV06w=; b=XsQ+i+E83BHbdk/PHMd7qh/lmH2VGlFuITthi0dNt4IAR8eYZUUpRts6PEBa3oBOMe c/ks8PXkTriwbmWVoKWUIKJ0KRqLnNyf5oItvuypqWBqVc/gUikOT606UrG3dDxT8NJ5 Jo6hnbzZAQIakct0o42IUl1rp9dlAWw8vWIGktwB1rJm0ji6/A9z5nzeY2T6/cwACtwM jFeMZeABXNXU8IG5B9GOled1uudSdXmqLVPu7TeSogzdnb9t2j8SWhuRBXDUzbMwG9xA 0rB3YQMDK1nSUxMEaQPS5UQYIhGftWszvrvhA0oKNjzC+O3mA0X/N5IG9J4PL2OYgTi4 1E9w== X-Gm-Message-State: APjAAAUbCjd/K7LV7t1zkhBGlx1GVG4E9FzrqRevgGsUPfLdoBp5NdFt Hv+niflrJDJFCupgiZtuitc/mA== X-Received: by 2002:ac8:7b24:: with SMTP id l4mr3244090qtu.3.1579192973797; Thu, 16 Jan 2020 08:42:53 -0800 (PST) Received: from localhost ([2620:10d:c091:500::ae73]) by smtp.gmail.com with ESMTPSA id f4sm10245757qka.89.2020.01.16.08.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 08:42:52 -0800 (PST) Date: Thu, 16 Jan 2020 11:42:52 -0500 From: Johannes Weiner To: Roman Gushchin Cc: linux-mm@kvack.org, Andrew Morton , Michal Hocko , Shakeel Butt , Vladimir Davydov , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v2 1/6] mm: kmem: cleanup (__)memcg_kmem_charge_memcg() arguments Message-ID: <20200116164252.GA57074@cmpxchg.org> References: <20200109202659.752357-1-guro@fb.com> <20200109202659.752357-2-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109202659.752357-2-guro@fb.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 12:26:54PM -0800, 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 Looks good to me. Acked-by: Johannes Weiner