Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1638105pxf; Fri, 19 Mar 2021 11:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt02SfLQMoyXoFBu3RQtnB/K3cLNHtnnbPc0BCvxqZ32LP6NoD8GqRwiUZiwCpVJV5tutA X-Received: by 2002:a17:906:5e55:: with SMTP id b21mr5998672eju.289.1616179409214; Fri, 19 Mar 2021 11:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616179409; cv=none; d=google.com; s=arc-20160816; b=cTfzA5JMyHEpMpl0VVWlW7CwyQLp+VZaiICUWbuMp9hMjBUII5uordUQHzBsVXwEyO 8qc6vFVWBmlWT7bI70BAd+IXf3dDlos+qmB+WzePDJebb8lmBgGQ2vvQkqIpgeErpVWj m9OH8PnFSDKH9QJHofk1Hdl1Nz8oLXTQYymP8lNQvZvcKWYu3AmHgv6TXLkp40XsoHig IsS+mvb/Ol9vEu9IZnd+CPbmbOnXXnHOqi66ImX5dRMG5on13m8oTvAmMjDIta+sVl6K r7qDKCwowhb/CeIgM2kuftMCPy7V/m/flhlTUzVoROg4MvjddDud+meKbcJD6EUMSp4e UWYg== 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=cXH+dcJq1Qlcq3WMXI8ATU9OtVilMFQ65bMjs0UMHDg=; b=1IsSgn6W4Nzw15OLsZVg54jU2q2aNL3UCVTdJfmc0bCEH+kDoSpw5KkqcI/ARsljEf K/d8hQim/wQZHRFI+SCFCTzWZEx+oWzWh2BmohMcVeaNfOI/MjUQOtP++4EmS/bwqmw8 KW3y6KvetqlwOBXwwm14YagZng1dh5yel8qAKcmLF94o5asY5YNR4x55wxPAounswnJh +XR8lWZmt+aQGuUkw9NwWL3Ju3Vko3FvucS7rwyZznv0D9y8wvD8LWUuH4Vs53sYCaiz n7F7aT3UlSd5BnfxJ4mL+jbQ8Hn5ZWKmTv9c/glkqICr33fz/QvSrKuFOAS2DSZf3Sa1 v5Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TNj0S4RC; 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 x27si4987768edi.240.2021.03.19.11.43.06; Fri, 19 Mar 2021 11:43:29 -0700 (PDT) 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=TNj0S4RC; 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 S229925AbhCSSmI (ORCPT + 99 others); Fri, 19 Mar 2021 14:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbhCSSlv (ORCPT ); Fri, 19 Mar 2021 14:41:51 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A8B6C06174A for ; Fri, 19 Mar 2021 11:41:51 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id f3so3149522lfu.5 for ; Fri, 19 Mar 2021 11:41:51 -0700 (PDT) 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=cXH+dcJq1Qlcq3WMXI8ATU9OtVilMFQ65bMjs0UMHDg=; b=TNj0S4RC7TT5fCBMitvVKqaFLnlJcsF4VguNB2RglBNykJKE60t/iViTRdbuGJSTdW Jom/CweL61c9Awm1E7Vni+jExZ6YjT0S8087YMEicMdkwhqLtAfuNv04zroDU/nWW0p2 Qg+nT/q1zls7iPv8jQD4WpC1Ms55Sx/gL1l1BiK32+aZPZSoe/n3dADP754AUvRSU5Gg XQvWAzp6B+V3hTMZ+OO7HleYi/IG3wS3/5YA1fiPCBnh9PyTjS1e/J1+/1wxiG2/axn2 gEFIdQTLmR02h7X5lHRtGj0jlQdVljlzUm0Z/hMLWRGyXDDhyr89qEuMsqxvc0o42D82 qwMA== 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=cXH+dcJq1Qlcq3WMXI8ATU9OtVilMFQ65bMjs0UMHDg=; b=fNoSDvqTkEl0oQPMAn0UZxatx3cyP62lEmEElYdnqXweW9x5h3Cnoi0rQuHbag2+sP it8fAZTB6bZCC6t3IneABY8kIQBptZZOYZjr1Va234mtMmfVPV/G2gwgVUSOSfrOdpgK nHsdRskgZQfwIc1laEZJL6WoUqLw0fQnTykiYHo/jutJuA7VwIG8k5K01BPca+gwPbRF uAFCCuVkFzfU4Z4U0l6p4mbUvlVhcAOavKpudyHp0yYbKXuvYmNQ8RLQaxTIzsJcYhzr jnoGPrWcpSzGf2xPHMFJztI0RZtJ0LhRalaTzXIbpfa7nVhgOFnhxw9iphr87UvwQgZx OHHQ== X-Gm-Message-State: AOAM531GwYO+pq24TsZhB6coLviRNYh+3YBun50Q+kRCxjBCjRgHghjq 70CSIY9Toh6ik11Gfwmw7dD2DQITDIaMlv0HdK9nbQ== X-Received: by 2002:a05:6512:b93:: with SMTP id b19mr1519816lfv.432.1616179309422; Fri, 19 Mar 2021 11:41:49 -0700 (PDT) MIME-Version: 1.0 References: <20210319163821.20704-1-songmuchun@bytedance.com> <20210319163821.20704-7-songmuchun@bytedance.com> In-Reply-To: <20210319163821.20704-7-songmuchun@bytedance.com> From: Shakeel Butt Date: Fri, 19 Mar 2021 11:41:37 -0700 Message-ID: Subject: Re: [PATCH v5 6/7] mm: memcontrol: inline __memcg_kmem_{un}charge() into obj_cgroup_{un}charge_pages() To: Muchun Song Cc: Roman Gushchin , Johannes Weiner , Michal Hocko , Andrew Morton , Vladimir Davydov , LKML , Linux MM , Xiongchun duan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 9:39 AM Muchun Song wrote: > > There is only one user of __memcg_kmem_charge(), so manually inline > __memcg_kmem_charge() to obj_cgroup_charge_pages(). Similarly manually > inline __memcg_kmem_uncharge() into obj_cgroup_uncharge_pages() and > call obj_cgroup_uncharge_pages() in obj_cgroup_release(). > > This is just code cleanup without any functionality changes. > > Signed-off-by: Muchun Song Reviewed-by: Shakeel Butt