Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1567704pxf; Fri, 9 Apr 2021 11:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2xaTr0FlKMOw8FDy+k7XP4+LNIEYvHIf2ZmRwNoNGQtx/rPwyB2m2yt6M5tmxYJm3faz1 X-Received: by 2002:aa7:c7d5:: with SMTP id o21mr18831776eds.166.1617993254492; Fri, 09 Apr 2021 11:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617993254; cv=none; d=google.com; s=arc-20160816; b=zwHmX6xs3Fjc8HFmXHX1Cg60X3B92zdH3EuWIWvuJWJEcP1r0YUafBQzbskrhDg7GB xqN2NBRmKMCQ0zntd1QPQgW5u2DSt06sr74yAann0QairYTFkmq1hAizlOq6HtV0xwzh gNx+x8wZPmYSyzxYtv5rlLEUPO+efSuornkC6vLcT5YZC+HD2fJQpez8vlzg8w9fdZPX u4QiiHcxXaBh+pXJieP3v2WGjXoCM5PmSi2v++LFjx6kUQIuYhtOc/T42l0cX5CR9wac lQd4ZofYf65u73EbgcnRiPysSBqQ8s0iWKVQkbmBaW5vx446QqxdyvSjymCxDLtPDkoT iBfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EKQ+PAGgShMzePeTUtIKBivxK+r/dnGaqdyGytm2oWo=; b=VM0+32OQB57OtRLhB55hIvWmhEOHAPXdaF8PF3U/jVd7rXV2KUJhEDhuLlM4D/uX1B HLkqWq+JhQT05qBVgMsdxTVQt7Z6+oN+kz8t1S6mL9t5x2HVh4StQUMY3BvHWfqcE4mk Hd+075Te87iI7uHfkv0s5ngPFFRCGm7mMBSPliikFA4VUY7pJISD9DB5xTd4W3V5QiQh MpYasGvmeMZPlprIZ8Ro7HSM5MVeTPUcNe9AutURtNvNl7A14mL8g/YSL00cZz4zjsFe uop8ixhJ4y8Ucd+9d858UZy3ro5qEiLLCPQ03kiYwphSL5ZaBETq9qRQVNvUvBptMTHE 1Q+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=fCEschyG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si2482901ejr.411.2021.04.09.11.33.51; Fri, 09 Apr 2021 11:34:14 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=fCEschyG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234378AbhDISb6 (ORCPT + 99 others); Fri, 9 Apr 2021 14:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234313AbhDISb5 (ORCPT ); Fri, 9 Apr 2021 14:31:57 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F78C061762 for ; Fri, 9 Apr 2021 11:31:44 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id v70so6778564qkb.8 for ; Fri, 09 Apr 2021 11:31:44 -0700 (PDT) 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=EKQ+PAGgShMzePeTUtIKBivxK+r/dnGaqdyGytm2oWo=; b=fCEschyGAMMn6VF4XHS2XGgUN9Ekoe7/0ZKT+fdRYNG7iwqBjCt2ZG5MVCQm2UpImR pfQNJorBT9ui+crcKlywulA7fWeM4vq4q+AO/ZjSi27KoqxrN5PnfUypmrs9SV9ZHDHX jcpSE8p93+s/UfWmuKIb/sQceslqTjla1XbJLG8Wvfzx1TvgnO8ZI2imcWGp3TOZTjra FSrmmjhLDszTkpV71RNqsEaptogyES14WFo/IJ40KpsNYFItGKyuxbbC1Ib2CiKGgOqn I1jZRD8UpUPNlquDvJ5it8pNSInv3pLslaHtP7fWLkvpnicHWZsagsIXQXRaK87JU+8N UYaw== 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=EKQ+PAGgShMzePeTUtIKBivxK+r/dnGaqdyGytm2oWo=; b=XO+n3Y9VkY87uX3FpXjggx5Gny12/MCElKOwf0lhnF50AmsAE+RWcJxP9fowzOZJLV f7DQ9FYkFtpHa/MW/XTdHtLRU4A+ImUtYfhxoncTxBL5pPsPXVFGjYK8uXhMpk0ZLgGF 3dFqxC+LvHeXeaXi7hRUAUVGbb7oIQfXZkTMeKBxOVd0KKNWNoVp2p2ZeNyWc4F5b+H2 crawQfXQ1IQtDGT2T5rUUo5uLvO410MqJwoYNahd+Hx3j5jwvCCnoVra+Uw5TS/Pbl0k fQ6Q2exQxCwUZEXdGi9XxTrk+pMzSpwqAqDSXcMqa5/j5qL1HVClJFtMtm3cDbf611ba /Lng== X-Gm-Message-State: AOAM531zM+2N9khDK2oraFPLKQ8Xi+sdUyyw9ifTm+KCVSIwMNgGIXys xM8gO7t1V26CBuua9+HRmdpaFg== X-Received: by 2002:a05:620a:10ba:: with SMTP id h26mr2158205qkk.155.1617993103749; Fri, 09 Apr 2021 11:31:43 -0700 (PDT) Received: from localhost (70.44.39.90.res-cmts.bus.ptd.net. [70.44.39.90]) by smtp.gmail.com with ESMTPSA id 79sm2411128qki.37.2021.04.09.11.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 11:31:43 -0700 (PDT) Date: Fri, 9 Apr 2021 14:31:42 -0400 From: Johannes Weiner To: Muchun Song Cc: guro@fb.com, mhocko@kernel.org, akpm@linux-foundation.org, shakeelb@google.com, vdavydov.dev@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, bsingharora@gmail.com, shy828301@gmail.com, alex.shi@linux.alibaba.com Subject: Re: [RFC PATCH v2 09/18] mm: vmscan: remove noinline_for_stack Message-ID: References: <20210409122959.82264-1-songmuchun@bytedance.com> <20210409122959.82264-10-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210409122959.82264-10-songmuchun@bytedance.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 09, 2021 at 08:29:50PM +0800, Muchun Song wrote: > The noinline_for_stack is introduced by commit 666356297ec4 ("vmscan: > set up pagevec as late as possible in shrink_inactive_list()"), its > purpose is to delay the allocation of pagevec as late as possible to > save stack memory. But the commit 2bcf88796381 ("mm: take pagevecs off > reclaim stack") replace pagevecs by lists of pages_to_free. So we do > not need noinline_for_stack, just remove it (let the compiler decide > whether to inline). > > Signed-off-by: Muchun Song Good catch. Acked-by: Johannes Weiner Since this patch is somewhat independent of the rest of the series, you may want to put it in the very beginning, or even submit it separately, to keep the main series as compact as possible. Reviewers can be more hesitant to get involved with larger series ;)