Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2980310ybt; Mon, 22 Jun 2020 11:46:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5aRx99SS0+OHZmramGZOuotA8NYV/ynW0KVUfHAM1HVzHOohztuMFzYTy9tTI7Fqy0eGb X-Received: by 2002:a05:6402:3135:: with SMTP id dd21mr17640482edb.110.1592851596763; Mon, 22 Jun 2020 11:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592851596; cv=none; d=google.com; s=arc-20160816; b=q2a9SxX2Vlp1OXtX0fpkzqhgJQt5diPB/MRz+7zDCMl7CIOlHoTdj6iMmNv8P7QLWx 2zpdw8r48uQEnzLBPFytsYMKlTV3hUyNM+gZcp1wCmm0J5Rlxl+xUvA2K8Q0sADkmHwF SLjE6+wfpnWGFIc9uMbsUCWdp0qE34Snz+kyK7P9ZS5w9LWw6VnifZi/txdxsDaqIWQE N7NYcqSiNAGtL6NRyqRaa+k7ZOVHHZyGOrSmZc9CJbqIQbRKJlzeJZqUTHfGV9aCtE3q M8r0tki/dQPo4ZyMVKuYC3twXMNASmWhoCqvXnxlXEZoG589hZD2+gzclPzuAoX2pmsT 4qvA== 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=9aX2e0KRVgCu7iM/YzQ9kW8CY4++NvSyG3ZKNDs8dBA=; b=v82JmBUWyJbNnndyuu33F4eHZc3lCh8aZrEuhkD6iOV/DLejo7sP52qWZMqEUs8vEn 23+yupRiFc6BK8SUaFOugITnKixFeJGuATXTyZFb5DCVGVFtQ/CbXhRCAGa6s8Sxi0zw 4oF5z+jR01A36By8/K/v4OkO4YYR+4C/NcbZoarGiDmwiY1bkvnUZFY6LgDJMFl2k2Z+ DXC/gt9cXysCRl6RoyQgkQjfexqJ+YMbdEitK7rx+3GxThbmQValnmtxgEMTC9v1aLIB Gn1cmXLClqYs2Ff2l+OFn+1vV0sJ4Gg9AfXG8z0DXIffNeQ+hJPb+dWBe4hhed0tKTfC AFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PkWyxttt; 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 cc13si882332edb.297.2020.06.22.11.46.12; Mon, 22 Jun 2020 11:46:36 -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=PkWyxttt; 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 S1730323AbgFVSmT (ORCPT + 99 others); Mon, 22 Jun 2020 14:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbgFVSmT (ORCPT ); Mon, 22 Jun 2020 14:42:19 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B79A2C061573 for ; Mon, 22 Jun 2020 11:42:18 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id z9so20502754ljh.13 for ; Mon, 22 Jun 2020 11:42:18 -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=9aX2e0KRVgCu7iM/YzQ9kW8CY4++NvSyG3ZKNDs8dBA=; b=PkWyxtttxziJ7sl0J3cRRVqapHbtXt4kdu65zklL3qMNyj/kjW1Ul758pFfOfq7bc6 vIq4C4PwC6Rlt93ZeCqqhOxf9pF6Rgwm3KfctMtfhrPhEunuiOYxoQIodSkAGBAjfR8q xzyUIeOenWufKMgp6iggI7PqKYqK1589MvKHc4dpa40qgOEfP0EvG9bdKk8YWo8Ob6He FsMNnr04wAZwfZLSOPoNm3SjxtkYkPzfpdrxz13T+dinoILo/fLnB+dQRAE64Un2byUt pHgq7o/3EyZRFF07xl3YG6cAcHeypZ4n5d37OtAYejFZr3KkIzRPD3Jv4UyRTNA6Yf3C P43w== 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=9aX2e0KRVgCu7iM/YzQ9kW8CY4++NvSyG3ZKNDs8dBA=; b=qQgDhjXitktf4ijwWRK+5pqxXKQ9b4X0ZBxRkoKB5xnzNTkj9lsDkP3MaUkB4I9ppP 8nSsU3TVLavQFPq12+RZwR3ztmAW9QrQ5qEZNVdbMts+HYpFdyLDHvBLqQnB0GaHoL5u Jnar8oWflwuh1UcIkcWXbUxuQSVFrszDDpHj9cPQmQPpXCKnfWtb+3Auf6nElkAp2Oje jKGkHAiR+bbIbb/0bbhlUfBUKFPGBL0Bzp/hCG/g2yIKCT0F6L0IPpt8K+ao6EstRw32 ZthDMcwRdhk8tg9PMDDztzD8B7Z1pA+ESqVAIKVgLleW5NacN+/7ly91d6EKSRG+9EYz HZIQ== X-Gm-Message-State: AOAM533RO3JLKB1+Vm3JHMLG2NhyHlfotw6D8LlBDKikI/hfuRf/bSyF Z87REGS7DK+o33CitlMNJoQNeirjVf2pTAjpY7Rm7Q== X-Received: by 2002:a2e:960b:: with SMTP id v11mr9389585ljh.77.1592851336994; Mon, 22 Jun 2020 11:42:16 -0700 (PDT) MIME-Version: 1.0 References: <20200608230654.828134-1-guro@fb.com> <20200608230654.828134-15-guro@fb.com> In-Reply-To: <20200608230654.828134-15-guro@fb.com> From: Shakeel Butt Date: Mon, 22 Jun 2020 11:42:05 -0700 Message-ID: Subject: Re: [PATCH v6 14/19] mm: memcg/slab: remove memcg_kmem_get_cache() To: Roman Gushchin Cc: Andrew Morton , Christoph Lameter , Johannes Weiner , Michal Hocko , Linux MM , Vlastimil Babka , Kernel Team , LKML 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, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > The memcg_kmem_get_cache() function became really trivial, > so let's just inline it into the single call point: > memcg_slab_pre_alloc_hook(). > > It will make the code less bulky and can also help the compiler > to generate a better code. > > Signed-off-by: Roman Gushchin > Reviewed-by: Vlastimil Babka Reviewed-by: Shakeel Butt